ref(merkle): rework API #135
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (0)
Filtered Findings (10)
contracts/src/arithmetic.rs|4 col 18| warning: trait AddAssignUnchecked
is never used
--> contracts/src/arithmetic.rs:4:18
|
4 | pub(crate) trait AddAssignUnchecked {
| ^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)]
on by default
contracts/src/arithmetic.rs|15 col 18| warning: trait SubAssignUnchecked
is never used
--> contracts/src/arithmetic.rs:15:18
|
15 | pub(crate) trait SubAssignUnchecked {
| ^^^^^^^^^^^^^^^^^^
README.md|1 col 3| warning: item in documentation is missing backticks
--> contracts/src/../../README.md:1:3
|
1 | # OpenZeppelin Contracts for Stylus
| ^^^^^^^^^^^^
|
= 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
|
1 | # OpenZeppelin
Contracts for Stylus
| ~~~~~~~~~~~~~~
README.md|14 col 1| warning: item in documentation is missing backticks
--> contracts/src/../../README.md:14:1
|
14 | OpenZeppelin Contracts for Stylus exists thanks to its contributors. There are
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
14 | OpenZeppelin
Contracts for Stylus exists thanks to its contributors. There are
| ~~~~~~~~~~~~~~
README.md|29 col 1| warning: item in documentation is missing backticks
--> contracts/src/../../README.md:29:1
|
29 | OpenZeppelin Contracts for Stylus is released under the MIT License.
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
29 | OpenZeppelin
Contracts for Stylus is released under the MIT License.
| ~~~~~~~~~~~~~~
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
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)