hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

refactor(schema_derive): use error emitter instead of bailing out early #5131

Closed DCNick3 closed 2 weeks ago

DCNick3 commented 2 weeks ago

This PR does applies a refactor to use an error emitter instead of bailing early in the iroha_schema derive macros, like was done in https://github.com/hyperledger/iroha/pull/3897.

The second commit is just a drive-by refactor removing some code duplication in where clause generation.

This is in preparation for a PR adding smart trait bound derivation (#5130).