chore/error: remove from str conversion and add deprecation notificat… (#7472)
* chore/error: remove from str conversion and add deprecation notifications * fixup changes * fix test looking for gone ::Msg variant * another test fix * one is duplicate, the other is not, so duplicates reported are n-1 * darn spaces Co-authored-by:Andronik Ordian <write@reusable.software> * remove pointless doc comments of error variants without any value * low hanging fruits (for a tall person) * moar error type variants * avoid the storage modules for now They are in need of a refactor, and the pain is rather large removing all String error and DefaultError occurences. * chore remove pointless error generic * fix test for mocks, add a bunch of non_exhaustive * max line width * test fixes due to error changes * fin * error outputs... again * undo stderr adjustments * Update client/consensus/slots/src/lib.rs Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * remove closure clutter Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * more error types * introduce ApiError * extract Mock error * ApiError refactor * even more error types * the last for now * chore unused deps * another extraction * reduce should panic, due to extended error messages * error test happiness * shift error lines by one * doc tests * white space Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * Into -> From Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * remove pointless codec Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * avoid pointless self import Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by:
Bernhard Schuster <bernhard@parity.io> Co-authored-by:
Andronik Ordian <write@reusable.software> Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
Showing
- substrate/Cargo.lock 12 additions, 4 deletionssubstrate/Cargo.lock
- substrate/client/api/Cargo.toml 1 addition, 0 deletionssubstrate/client/api/Cargo.toml
- substrate/client/api/src/light.rs 12 additions, 4 deletionssubstrate/client/api/src/light.rs
- substrate/client/basic-authorship/src/basic_authorship.rs 1 addition, 4 deletionssubstrate/client/basic-authorship/src/basic_authorship.rs
- substrate/client/block-builder/src/lib.rs 1 addition, 1 deletionsubstrate/client/block-builder/src/lib.rs
- substrate/client/cli/src/error.rs 21 additions, 24 deletionssubstrate/client/cli/src/error.rs
- substrate/client/consensus/slots/Cargo.toml 2 additions, 1 deletionsubstrate/client/consensus/slots/Cargo.toml
- substrate/client/consensus/slots/src/lib.rs 15 additions, 7 deletionssubstrate/client/consensus/slots/src/lib.rs
- substrate/client/db/src/lib.rs 4 additions, 8 deletionssubstrate/client/db/src/lib.rs
- substrate/client/executor/common/Cargo.toml 1 addition, 2 deletionssubstrate/client/executor/common/Cargo.toml
- substrate/client/executor/common/src/error.rs 47 additions, 42 deletionssubstrate/client/executor/common/src/error.rs
- substrate/client/executor/common/src/lib.rs 1 addition, 0 deletionssubstrate/client/executor/common/src/lib.rs
- substrate/client/executor/common/src/util.rs 4 additions, 12 deletionssubstrate/client/executor/common/src/util.rs
- substrate/client/executor/src/integration_tests/mod.rs 1 addition, 1 deletionsubstrate/client/executor/src/integration_tests/mod.rs
- substrate/client/light/src/call_executor.rs 2 additions, 1 deletionsubstrate/client/light/src/call_executor.rs
- substrate/client/light/src/fetcher.rs 7 additions, 7 deletionssubstrate/client/light/src/fetcher.rs
- substrate/client/network/src/light_client_handler.rs 1 addition, 1 deletionsubstrate/client/network/src/light_client_handler.rs
- substrate/client/network/src/on_demand_layer.rs 17 additions, 6 deletionssubstrate/client/network/src/on_demand_layer.rs
- substrate/client/rpc/src/state/state_full.rs 3 additions, 3 deletionssubstrate/client/rpc/src/state/state_full.rs
- substrate/client/service/Cargo.toml 2 additions, 2 deletionssubstrate/client/service/Cargo.toml
Please register or sign in to comment