Skip to content

impl new crypto opcodes #382

impl new crypto opcodes

impl new crypto opcodes #382

GitHub Actions / clippy succeeded Aug 22, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (0)
Filtered Findings (16)

framework/base/src/types/managed/wrapped/managed_vec_item.rs|34 col 9| warning: doc list item missing indentation
--> framework/base/src/types/managed/wrapped/managed_vec_item.rs:34:9
|
34 | /// TODO: wrap other types in readonly wrapper.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: #[warn(clippy::doc_lazy_continuation)] on by default
help: indent this line
|
34 | /// TODO: wrap other types in readonly wrapper.
| ++
framework/base/src/types/managed/wrapped/managed_vec_item.rs|34 col 9| warning: doc list item missing indentation
--> framework/base/src/types/managed/wrapped/managed_vec_item.rs:34:9
|
34 | /// TODO: wrap other types in readonly wrapper.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: #[warn(clippy::doc_lazy_continuation)] on by default
help: indent this line
|
34 | /// TODO: wrap other types in readonly wrapper.
| ++
contracts/feature-tests/erc-style-contracts/erc1155/src/erc1155.rs|163 col 22| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/erc-style-contracts/erc1155/src/erc1155.rs:163:22
|
163 | .set(&ManagedAddress::zero());
| ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: ManagedAddress::zero()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/feature-tests/erc-style-contracts/erc1155/src/erc1155.rs|323 col 18| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/erc-style-contracts/erc1155/src/erc1155.rs:323:18
|
323 | .set(&ManagedAddress::zero());
| ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: ManagedAddress::zero()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
contracts/feature-tests/composability/forwarder/src/fwd_esdt.rs|136 col 26| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/composability/forwarder/src/fwd_esdt.rs:136:26
|
136 | .set(&token_identifier.unwrap_esdt());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: token_identifier.unwrap_esdt()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/feature-tests/composability/forwarder-legacy/src/fwd_esdt_legacy.rs|132 col 26| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/composability/forwarder-legacy/src/fwd_esdt_legacy.rs:132:26
|
132 | .set(&token_identifier.unwrap_esdt());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: token_identifier.unwrap_esdt()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/feature-tests/rust-testing-framework-tester/src/lib.rs|24 col 32| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/rust-testing-framework-tester/src/lib.rs:24:32
|
24 | self.total_value().set(&BigUint::from(1u32));
| ^^^^^^^^^^^^^^^^^^^^ help: change this to: BigUint::from(1u32)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/examples/nft-minter/src/nft_module.rs|126 col 41| warning: the borrowed expression implements the required traits
--> contracts/examples/nft-minter/src/nft_module.rs:126:41
|
126 | self.nft_token_id().set(&token_id.unwrap_esdt());
| ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: token_id.unwrap_esdt()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/feature-tests/composability/local-esdt-and-nft/src/lib.rs|280 col 26| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/composability/local-esdt-and-nft/src/lib.rs:280:26
|
280 | .set(&token_identifier.unwrap_esdt());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: token_identifier.unwrap_esdt()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/feature-tests/rust-testing-framework-tester/src/lib.rs|24 col 32| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/rust-testing-framework-tester/src/lib.rs:24:32
|
24 | self.total_value().set(&BigUint::from(1u32));
| ^^^^^^^^^^^^^^^^^^^^ help: change this to: BigUint::from(1u32)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/feature-tests/erc-style-contracts/erc1155/src/erc1155.rs|163 col 22| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/erc-style-contracts/erc1155/src/erc1155.rs:163:22
|
163 | .set(&ManagedAddress::zero());
| ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: ManagedAddress::zero()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/feature-tests/erc-style-contracts/erc1155/src/erc1155.rs|323 col 18| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/erc-style-contracts/erc1155/src/erc1155.rs:323:18
|
323 | .set(&ManagedAddress::zero());
| ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: ManagedAddress::zero()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
contracts/feature-tests/composability/local-esdt-and-nft/src/lib.rs|280 col 26| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/composability/local-esdt-and-nft/src/lib.rs:280:26
|
280 | .set(&token_identifier.unwrap_esdt());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: token_identifier.unwrap_esdt()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/examples/nft-minter/src/nft_module.rs|126 col 41| warning: the borrowed expression implements the required traits
--> contracts/examples/nft-minter/src/nft_module.rs:126:41
|
126 | self.nft_token_id().set(&token_id.unwrap_esdt());
| ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: token_id.unwrap_esdt()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/feature-tests/composability/forwarder/src/fwd_esdt.rs|136 col 26| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/composability/forwarder/src/fwd_esdt.rs:136:26
|
136 | .set(&token_identifier.unwrap_esdt());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: token_identifier.unwrap_esdt()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default
contracts/feature-tests/composability/forwarder-legacy/src/fwd_esdt_legacy.rs|132 col 26| warning: the borrowed expression implements the required traits
--> contracts/feature-tests/composability/forwarder-legacy/src/fwd_esdt_legacy.rs:132:26
|
132 | .set(&token_identifier.unwrap_esdt());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: token_identifier.unwrap_esdt()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: #[warn(clippy::needless_borrows_for_generic_args)] on by default