feat(platform)!: contested document resolution with masternode voting #2711
Annotations
11 warnings
The following actions uses Node.js version which is deprecated and will be forced to run on node20: mozilla-actions/[email protected], 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-dpp/src/data_contract/document_type/class_methods/try_from_schema/v0/mod.rs#L27
warning: unused import: `crate::consensus::basic::data_contract::ContestedUniqueIndexOnMutableDocumentTypeError`
--> packages/rs-dpp/src/data_contract/document_type/class_methods/try_from_schema/v0/mod.rs:27:5
|
27 | use crate::consensus::basic::data_contract::ContestedUniqueIndexOnMutableDocumentTypeError;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
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#L174
warning: very complex type used. Consider factoring parts into `type` definitions
--> packages/rs-drive/src/drive/verify/contract/verify_contract/v0/mod.rs:174:10
|
174 | ) -> 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#L34
warning: very complex type used. Consider factoring parts into `type` definitions
--> packages/rs-drive/src/drive/verify/system/verify_elements/v0/mod.rs:34:10
|
34 | ) -> 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#L97
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:97:17
|
97 | 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#L136
warning: taken reference of right operand
--> packages/rs-drive/src/drive/verify/voting/verify_vote_poll_vote_state_proof/v0/mod.rs:136:32
|
136 | ... 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#L247
warning: taken reference of right operand
--> packages/rs-drive/src/drive/verify/voting/verify_vote_poll_vote_state_proof/v0/mod.rs:247:32
|
247 | ... 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
|
packages/rs-drive/src/drive/votes/cleanup/remove_contested_resource_vote_poll_contenders_operations/v0/mod.rs#L20
warning: very complex type used. Consider factoring parts into `type` definitions
--> packages/rs-drive/src/drive/votes/cleanup/remove_contested_resource_vote_poll_contenders_operations/v0/mod.rs:20:21
|
20 | vote_polls: &[(
| _____________________^
21 | | &ContestedDocumentResourceVotePollWithContractInfo,
22 | | &TimestampMillis,
23 | | &BTreeMap<ResourceVoteChoice, Vec<Identifier>>,
24 | | )],
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
|
This job succeeded
Loading