experiment with multilevel inheritance model #5
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (5)
contracts-proc/src/virtual.rs|1 col 16| warning: unused import: str::FromStr
--> contracts-proc/src/virtual.rs:1:16
|
1 | use std::{mem, str::FromStr};
| ^^^^^^^^^^^^
|
= note: #[warn(unused_imports)]
on by default
contracts-proc/src/lib.rs|5 col 68| warning: unused import: ItemFn
--> contracts-proc/src/lib.rs:5:68
|
5 | use syn::{parse::Parse, parse_macro_input, punctuated::Punctuated, ItemFn};
| ^^^^^^
contracts-proc/src/virtual.rs|202 col 32| warning: useless conversion to the same type: proc_macro2::TokenStream
--> contracts-proc/src/virtual.rs:202:32
|
202 | Err(err) => return err.to_compile_error().into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing .into()
: err.to_compile_error()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: #[warn(clippy::useless_conversion)]
on by default
contracts/src/token/erc721/mod.rs|18 col 9| warning: unused import: enumerable
--> contracts/src/token/erc721/mod.rs:18:9
|
18 | enumerable,
| ^^^^^^^^^^
|
= note: #[warn(unused_imports)]
on by default
contracts/src/token/erc721/extensions/pausable.rs|5 col 42| warning: unused import: msg
--> contracts/src/token/erc721/extensions/pausable.rs:5:42
|
5 | use stylus_sdk::{alloy_primitives::U256, msg, prelude::*};
| ^^^
Filtered Findings (1)
contracts/src/token/erc721/extensions/burnable.rs|11 col 1| warning: unused doc comment
--> contracts/src/token/erc721/extensions/burnable.rs:11:1
|
11 | /// An [Erc721
] token that can be burned (destroyed).
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
|
= help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
= note: #[warn(unused_doc_comments)]
on by default
Annotations
Check warning on line 1 in contracts-proc/src/virtual.rs
github-actions / clippy
[clippy] contracts-proc/src/virtual.rs#L1
warning: unused import: `str::FromStr`
--> contracts-proc/src/virtual.rs:1:16
|
1 | use std::{mem, str::FromStr};
| ^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Raw output
contracts-proc/src/virtual.rs:1:16:w:warning: unused import: `str::FromStr`
--> contracts-proc/src/virtual.rs:1:16
|
1 | use std::{mem, str::FromStr};
| ^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
__END__
Check warning on line 5 in contracts-proc/src/lib.rs
github-actions / clippy
[clippy] contracts-proc/src/lib.rs#L5
warning: unused import: `ItemFn`
--> contracts-proc/src/lib.rs:5:68
|
5 | use syn::{parse::Parse, parse_macro_input, punctuated::Punctuated, ItemFn};
| ^^^^^^
Raw output
contracts-proc/src/lib.rs:5:68:w:warning: unused import: `ItemFn`
--> contracts-proc/src/lib.rs:5:68
|
5 | use syn::{parse::Parse, parse_macro_input, punctuated::Punctuated, ItemFn};
| ^^^^^^
__END__
Check warning on line 202 in contracts-proc/src/virtual.rs
github-actions / clippy
[clippy] contracts-proc/src/virtual.rs#L202
warning: useless conversion to the same type: `proc_macro2::TokenStream`
--> contracts-proc/src/virtual.rs:202:32
|
202 | Err(err) => return err.to_compile_error().into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `err.to_compile_error()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
Raw output
contracts-proc/src/virtual.rs:202:32:w:warning: useless conversion to the same type: `proc_macro2::TokenStream`
--> contracts-proc/src/virtual.rs:202:32
|
202 | Err(err) => return err.to_compile_error().into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `err.to_compile_error()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
__END__
Check warning on line 18 in contracts/src/token/erc721/mod.rs
github-actions / clippy
[clippy] contracts/src/token/erc721/mod.rs#L18
warning: unused import: `enumerable`
--> contracts/src/token/erc721/mod.rs:18:9
|
18 | enumerable,
| ^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Raw output
contracts/src/token/erc721/mod.rs:18:9:w:warning: unused import: `enumerable`
--> contracts/src/token/erc721/mod.rs:18:9
|
18 | enumerable,
| ^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
__END__
Check warning on line 5 in contracts/src/token/erc721/extensions/pausable.rs
github-actions / clippy
[clippy] contracts/src/token/erc721/extensions/pausable.rs#L5
warning: unused import: `msg`
--> contracts/src/token/erc721/extensions/pausable.rs:5:42
|
5 | use stylus_sdk::{alloy_primitives::U256, msg, prelude::*};
| ^^^
Raw output
contracts/src/token/erc721/extensions/pausable.rs:5:42:w:warning: unused import: `msg`
--> contracts/src/token/erc721/extensions/pausable.rs:5:42
|
5 | use stylus_sdk::{alloy_primitives::U256, msg, prelude::*};
| ^^^
__END__