refactor: rename DriveQuery to DriveDocumentQuery #2883
Annotations
11 warnings
The following actions uses Node.js version which is deprecated and will be forced to run on node20: mozilla-actions/sccache-action@v0.0.3, strophy/actions-cache@opendal-update. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
packages/rs-drive/src/drive/batch/grovedb_op_batch/mod.rs#L105
warning: `to_string` applied to a type that implements `Display` in `format!` args
--> packages/rs-drive/src/drive/batch/grovedb_op_batch/mod.rs:105:56
|
105 | ... format!("{}({})", root_tree.to_string(), key[0]),
| ^^^^^^^^^^^^ help: remove this
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
= note: `#[warn(clippy::to_string_in_format_args)]` on by default
|
packages/rs-drive/src/drive/batch/grovedb_op_batch/mod.rs#L140
warning: `to_string` applied to a type that implements `Display` in `format!` args
--> packages/rs-drive/src/drive/batch/grovedb_op_batch/mod.rs:140:56
|
140 | ... format!("{}({})", root_tree.to_string(), key[0]),
| ^^^^^^^^^^^^ help: remove this
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
|
packages/rs-drive/src/drive/document/estimation_costs/stateless_delete_of_non_tree_for_costs/v0/mod.rs#L80
warning: using `clone` on type `EstimatedLayerInformation` which implements the `Copy` trait
--> packages/rs-drive/src/drive/document/estimation_costs/stateless_delete_of_non_tree_for_costs/v0/mod.rs:80:39
|
80 | Ok((s as u64, layer_info.clone()))
| ^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*layer_info`
|
= 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
|
packages/rs-drive/src/drive/identity/contract_info/keys/mod.rs#L44
warning: very complex type used. Consider factoring parts into `type` definitions
--> packages/rs-drive/src/drive/identity/contract_info/keys/mod.rs:44:10
|
44 | ) -> (
| __________^
45 | | BTreeMap<String, Vec<(KeyID, Purpose)>>,
46 | | Vec<(KeyID, Purpose)>,
47 | | ) {
| |_____^
|
= 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
|
packages/rs-drive/src/drive/verify/contract/verify_contract/v0/mod.rs#L182
warning: very complex type used. Consider factoring parts into `type` definitions
--> packages/rs-drive/src/drive/verify/contract/verify_contract/v0/mod.rs:182:10
|
182 | ) -> Result<(RootHash, BTreeMap<[u8; 32], Option<DataContract>>), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
|
packages/rs-drive/src/drive/verify/system/verify_elements/v0/mod.rs#L37
warning: very complex type used. Consider factoring parts into `type` definitions
--> packages/rs-drive/src/drive/verify/system/verify_elements/v0/mod.rs:37:10
|
37 | ) -> Result<(RootHash, BTreeMap<Vec<u8>, Option<Element>>), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
|
packages/rs-drive/src/drive/verify/system/verify_elements/mod.rs#L37
warning: very complex type used. Consider factoring parts into `type` definitions
--> packages/rs-drive/src/drive/verify/system/verify_elements/mod.rs:37:10
|
37 | ) -> Result<(RootHash, BTreeMap<Vec<u8>, Option<Element>>), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
|
packages/rs-drive/src/drive/verify/voting/verify_vote_poll_vote_state_proof/v0/mod.rs#L98
warning: this loop could be written as a `for` loop
--> packages/rs-drive/src/drive/verify/voting/verify_vote_poll_vote_state_proof/v0/mod.rs:98:17
|
98 | while let Some((path, first_key, element)) = elements_iter.next() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for (path, first_key, element) in elements_iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
= note: `#[warn(clippy::while_let_on_iterator)]` on by default
|
packages/rs-drive/src/drive/verify/voting/verify_vote_poll_vote_state_proof/v0/mod.rs#L137
warning: taken reference of right operand
--> packages/rs-drive/src/drive/verify/voting/verify_vote_poll_vote_state_proof/v0/mod.rs:137:32
|
137 | ... if first_key.as_slice() == &RESOURCE_STORED_INFO_KEY_U8_32 {
| ^^^^^^^^^^^^^^^^^^^^^^^^-------------------------------
| |
| help: use the right value directly: `RESOURCE_STORED_INFO_KEY_U8_32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: `#[warn(clippy::op_ref)]` on by default
|
packages/rs-drive/src/drive/verify/voting/verify_vote_poll_vote_state_proof/v0/mod.rs#L248
warning: taken reference of right operand
--> packages/rs-drive/src/drive/verify/voting/verify_vote_poll_vote_state_proof/v0/mod.rs:248:32
|
248 | ... if first_key.as_slice() == &RESOURCE_STORED_INFO_KEY_U8_32 {
| ^^^^^^^^^^^^^^^^^^^^^^^^-------------------------------
| |
| help: use the right value directly: `RESOURCE_STORED_INFO_KEY_U8_32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
|
The logs for this run have expired and are no longer available.
Loading