Skip to content

ref(merkle): rework API #152

ref(merkle): rework API

ref(merkle): rework API #152

GitHub Actions / clippy succeeded May 1, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (0)
Filtered Findings (5)

contracts/src/erc20/mod.rs|3 col 30| warning: item in documentation is missing backticks
--> contracts/src/erc20/mod.rs:3:30
|
3 | //! We have followed general OpenZeppelin Contracts guidelines: functions
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
note: the lint level is defined here
--> contracts/src/lib.rs:3:22
|
3 | #![warn(clippy::all, clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: #[warn(clippy::doc_markdown)] implied by #[warn(clippy::pedantic)]
help: try
|
3 | //! We have followed general OpenZeppelin Contracts guidelines: functions
| ~~~~~~~~~~~~~~
contracts/src/erc20/extensions/metadata.rs|9 col 1| warning: field marked as public but also inferred as unused because it's prefixed with _
--> contracts/src/erc20/extensions/metadata.rs:9:1
|
9 | / sol_storage! {
10 | | /// Optional metadata of the ERC-20 standard.
11 | | pub struct Metadata {
12 | | /// Token name.
... |
22 | | }
23 | | }
| |^
|
= help: consider removing the underscore, or making the field private
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#pub_underscore_fields
= note: #[warn(clippy::pub_underscore_fields)] implied by #[warn(clippy::pedantic)]
= note: this warning originates in the macro sol_storage (in Nightly builds, run with -Z macro-backtrace for more info)
contracts/src/erc20/mod.rs|87 col 1| warning: field marked as public but also inferred as unused because it's prefixed with _
--> contracts/src/erc20/mod.rs:87:1
|
87 | / sol_storage! {
88 | | /// State of an ERC20 token.
89 | | pub struct ERC20 {
90 | | /// Maps users to balances.
... |
96 | | }
97 | | }
| |
^
|
= help: consider removing the underscore, or making the field private
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#pub_underscore_fields
= note: this warning originates in the macro sol_storage (in Nightly builds, run with -Z macro-backtrace for more info)
contracts/src/erc20/mod.rs|17 col 1| warning: missing documentation for a struct field
--> contracts/src/erc20/mod.rs:17:1
|
17 | / sol! {
18 | | /// Emitted when value tokens are moved from one account (from) to
19 | | /// another (to).
20 | | ///
... |
25 | | event Approval(address indexed owner, address indexed spender, uint256 value);
26 | | }
| |^
|
note: the lint level is defined here
--> contracts/src/lib.rs:2:9
|
2 | #![warn(missing_docs, unreachable_pub, rust_2021_compatibility)]
| ^^^^^^^^^^^^
= note: this warning originates in the macro sol (in Nightly builds, run with -Z macro-backtrace for more info)
contracts/src/erc20/mod.rs|28 col 1| warning: missing documentation for a struct field
--> contracts/src/erc20/mod.rs:28:1
|
28 | / sol! {
29 | | /// Indicates an error related to the current balance of sender. Used
30 | | /// in transfers.
31 | | ///
... |
64 | |
65 | | }
| |
^
|
= note: this warning originates in the macro sol (in Nightly builds, run with -Z macro-backtrace for more info)