feat: abci state sync #4972
Annotations
10 warnings and 1 notice
Run clechasseur/rs-clippy-check@v3:
packages/rs-platform-value/src/inner_value.rs#L364
warning: elided lifetime has a name
--> packages/rs-platform-value/src/inner_value.rs:364:66
|
364 | pub fn get_array_slice<'a>(&'a self, key: &'a str) -> Result<&[Value], Error> {
| -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a`
|
= note: `#[warn(elided_named_lifetimes)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/state_transition/state_transitions/identity/identity_credit_transfer_transition/v0/v0_methods.rs#L11
warning: unused import: `platform_value::Identifier`
--> packages/rs-dpp/src/state_transition/state_transitions/identity/identity_credit_transfer_transition/v0/v0_methods.rs:11:5
|
11 | use platform_value::Identifier;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/state_transition/state_transitions/identity/identity_credit_transfer_transition/v0/v0_methods.rs#L15
warning: unused import: `crate::state_transition::GetDataContractSecurityLevelRequirementFn`
--> packages/rs-dpp/src/state_transition/state_transitions/identity/identity_credit_transfer_transition/v0/v0_methods.rs:15:5
|
15 | use crate::state_transition::GetDataContractSecurityLevelRequirementFn;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-drive-abci/src/abci/handler/finalize_block.rs#L105
warning: unnecessary parentheses around `if` condition
--> packages/rs-drive-abci/src/abci/handler/finalize_block.rs:105:8
|
105 | if (app.platform().config.state_sync_config.snapshots_enabled) {
| ^ ^
|
= note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
|
105 - if (app.platform().config.state_sync_config.snapshots_enabled) {
105 + if app.platform().config.state_sync_config.snapshots_enabled {
|
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-drive-abci/src/abci/handler/finalize_block.rs#L18
warning: the `Err`-variant returned from this function is very large
--> packages/rs-drive-abci/src/abci/handler/finalize_block.rs:18:6
|
18 | ) -> Result<proto::ResponseFinalizeBlock, Error>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: packages/rs-drive-abci/src/error/mod.rs:28:5
|
28 | Abci(#[from] AbciError),
| ----------------------- the largest variant contains at least 208 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-drive-abci/src/abci/handler/finalize_block.rs#L103
warning: using `clone` on type `u64` which implements the `Copy` trait
--> packages/rs-drive-abci/src/abci/handler/finalize_block.rs:103:16
|
103 | .store(block_height.clone(), Ordering::Relaxed);
| ^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `block_height`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `#[warn(clippy::clone_on_copy)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-drive-abci/src/abci/handler/list_snapshots.rs#L2
warning: unused import: `crate::abci::handler::error::error_into_exception`
--> packages/rs-drive-abci/src/abci/handler/list_snapshots.rs:2:5
|
2 | use crate::abci::handler::error::error_into_exception;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-drive-abci/src/abci/handler/list_snapshots.rs#L13
warning: the `Err`-variant returned from this function is very large
--> packages/rs-drive-abci/src/abci/handler/list_snapshots.rs:13:6
|
13 | ) -> Result<proto::ResponseListSnapshots, Error>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: packages/rs-drive-abci/src/error/mod.rs:28:5
|
28 | Abci(#[from] AbciError),
| ----------------------- the largest variant contains at least 208 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-drive-abci/src/abci/handler/list_snapshots.rs#L22
warning: deref which would be done by auto-deref
--> packages/rs-drive-abci/src/abci/handler/list_snapshots.rs:22:24
|
22 | .get_snapshots(&*app.platform().drive.grove)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&app.platform().drive.grove`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-drive-abci/src/abci/handler/list_snapshots.rs#L40
warning: redundant pattern matching, consider using `is_ok()`
--> packages/rs-drive-abci/src/abci/handler/list_snapshots.rs:40:9
|
40 | / match GroveDb::open(&s.path) {
41 | | Ok(_) => true,
42 | | Err(_) => false,
43 | | }
| |_________^ help: try: `GroveDb::open(&s.path).is_ok()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
= note: `#[warn(clippy::redundant_pattern_matching)]` on by default
|
Post Setup sccache
90% - 829 hits, 89 misses, 0 errors
|
Loading