feat(sdk): asset lock quorum and core locked height verification #5379
Annotations
10 warnings and 1 notice
Run clechasseur/rs-clippy-check@v3:
packages/wasm-dpp/src/utils.rs#L25
warning: bound is defined in more than one place
--> packages/wasm-dpp/src/utils.rs:25:24
|
25 | fn with_serde_into<D: DeserializeOwned>(&self) -> Result<D, JsValue>
| ^
26 | where
27 | D: for<'de> serde::de::Deserialize<'de> + 'static;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
= note: `#[warn(clippy::multiple_bound_locations)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/wasm-dpp/src/utils.rs#L24
warning: methods `with_serde_to_platform_value_map` and `with_serde_into` are never used
--> packages/wasm-dpp/src/utils.rs:24:8
|
19 | pub trait ToSerdeJSONExt {
| -------------- methods in this trait
...
24 | fn with_serde_to_platform_value_map(&self) -> Result<BTreeMap<String, Value>, JsValue>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 | fn with_serde_into<D: DeserializeOwned>(&self) -> Result<D, JsValue>
| ^^^^^^^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/wasm-dpp/src/utils.rs#L287
warning: methods `into_inner` and `inner_mut` are never used
--> packages/wasm-dpp/src/utils.rs:287:8
|
284 | pub(crate) trait Inner {
| ----- methods in this trait
...
287 | fn into_inner(self) -> Self::InnerItem;
| ^^^^^^^^^^
288 | fn inner(&self) -> &Self::InnerItem;
289 | fn inner_mut(&mut self) -> &mut Self::InnerItem;
| ^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/wasm-dpp/src/document/factory.rs#L27
warning: unused import: `std::str::FromStr`
--> packages/wasm-dpp/src/document/factory.rs:27:5
|
27 | use std::str::FromStr;
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/wasm-dpp/src/document/factory.rs#L158
warning: very complex type used. Consider factoring parts into `type` definitions
--> packages/wasm-dpp/src/document/factory.rs:158:24
|
158 | let documents: Vec<(
| ________________________^
159 | | DocumentTransitionActionType,
160 | | Vec<(Document, DocumentTypeRef, Bytes32)>,
161 | | )> = documents_by_action
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/wasm-dpp/src/document/factory.rs#L328
warning: use of a fallible conversion when an infallible one could be used
--> packages/wasm-dpp/src/document/factory.rs:328:27
|
328 | let documents_array = js_sys::Array::try_from(documents_with_action)
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use: `From::from`
|
= note: converting `JsValue` to `Array` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
= note: `#[warn(clippy::unnecessary_fallible_conversions)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/wasm-dpp/src/document/state_transition/batch_transition/mod.rs#L28
warning: unused import: `dpp::ed25519_dalek::ed25519::signature::SignerMut`
--> packages/wasm-dpp/src/document/state_transition/batch_transition/mod.rs:28:5
|
28 | use dpp::ed25519_dalek::ed25519::signature::SignerMut;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/wasm-dpp/src/document/state_transition/batch_transition/mod.rs#L108
warning: casting to the same type is unnecessary (`u16` -> `u16`)
--> packages/wasm-dpp/src/document/state_transition/batch_transition/mod.rs:108:9
|
108 | self.0.user_fee_increase() as u16
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.0.user_fee_increase()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
Run clechasseur/rs-clippy-check@v3:
packages/wasm-dpp/src/document/state_transition/batch_transition/token_transition/burn.rs#L6
warning: field `0` is never read
--> packages/wasm-dpp/src/document/state_transition/batch_transition/token_transition/burn.rs:6:36
|
6 | pub struct TokenBurnTransitionWasm(TokenBurnTransition);
| ----------------------- ^^^^^^^^^^^^^^^^^^^
| |
| field in this struct
|
= help: consider removing this field
= note: `TokenBurnTransitionWasm` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/wasm-dpp/src/document/state_transition/batch_transition/token_transition/config.rs#L6
warning: field `0` is never read
--> packages/wasm-dpp/src/document/state_transition/batch_transition/token_transition/config.rs:6:44
|
6 | pub struct TokenConfigUpdateTransitionWasm(TokenConfigUpdateTransition);
| ------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| field in this struct
|
= help: consider removing this field
= note: `TokenConfigUpdateTransitionWasm` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
|
Post Setup sccache
100% - 207 hits, 0 misses, 0 errors
|
Loading