Skip to content

WIP Implement zeropool-client, completely refactor libraries #232

WIP Implement zeropool-client, completely refactor libraries

WIP Implement zeropool-client, completely refactor libraries #232

Triggered via push November 9, 2023 08:05
Status Failure
Total duration 1m 0s
Artifacts
check_and_test
50s
check_and_test
Fit to window
Zoom out
Zoom in

Annotations

1 error and 15 warnings
check_and_test
Clippy had exited with the 101 exit code
explicit call to `.into_iter()` in function argument accepting `IntoIterator`: zeropool-state/src/utils.rs#L17
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` --> zeropool-state/src/utils.rs:17:14 | 17 | .zip(hasher.finalize().into_iter()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `hasher.finalize()` | note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` --> /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/iter/traits/iterator.rs:642:12 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: zeropool-state/src/merkle.rs#L347
warning: this expression creates a reference which is immediately dereferenced by the compiler --> zeropool-state/src/merkle.rs:347:13 | 347 | &update_boundaries, | ^^^^^^^^^^^^^^^^^^ help: change this to: `update_boundaries` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
this lifetime isn't used in the impl: zeropool-state/src/client/mod.rs#L115
warning: this lifetime isn't used in the impl --> zeropool-state/src/client/mod.rs:115:6 | 115 | impl<'p, P> UserAccount<P> | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
question mark operator is useless here: libs/kvdb-persy/src/lib.rs#L200
warning: question mark operator is useless here --> libs/kvdb-persy/src/lib.rs:200:29 | 200 | / ... Ok(tx 201 | | ... .one::<PersyId, String>(&index_id_to_k, rec_id) 202 | | ... .map_err(persy_to_io)? 203 | | ... .ok_or_else(|| { 204 | | ... std::io::Error::new(std::io::ErrorKind::Other, "Key not found") 205 | | ... })?) | |______________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark = note: `#[warn(clippy::needless_question_mark)]` on by default help: try removing question mark and `Ok()` | 200 ~ tx 201 + .one::<PersyId, String>(&index_id_to_k, rec_id) 202 + .map_err(persy_to_io)? 203 + .ok_or_else(|| { 204 + std::io::Error::new(std::io::ErrorKind::Other, "Key not found") 205 + }) |
the borrowed expression implements the required traits: libs/kvdb-persy/src/lib.rs#L117
warning: the borrowed expression implements the required traits --> libs/kvdb-persy/src/lib.rs:117:22 | 117 | self.db.read(&col.to_string(), &rec_id).map_err(persy_to_io) | ^^^^^^^^^^^^^^^^ help: change this to: `col.to_string()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
the borrowed expression implements the required traits: libs/kvdb-persy/src/lib.rs#L100
warning: the borrowed expression implements the required traits --> libs/kvdb-persy/src/lib.rs:100:37 | 100 | let data = self.db.read(&segment, &id).map_err(persy_to_io)?; | ^^^^^^^^ help: change this to: `segment` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
unused imports: `State`, `Transaction`: zeropool-state/src/client/mod.rs#L27
warning: unused imports: `State`, `Transaction` --> zeropool-state/src/client/mod.rs:27:19 | 27 | use self::state::{State, Transaction}; | ^^^^^ ^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
check_and_test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
check_and_test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check_and_test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check_and_test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check_and_test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check_and_test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check_and_test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check_and_test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/