feat: add enum_either
attribute
#56
debug
8 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 8 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.84.0 (9fc6b4312 2025-01-07)
- cargo 1.84.0 (66221abde 2024-11-19)
- clippy 0.1.84 (9fc6b43126 2025-01-07)
Annotations
Check warning on line 14 in src/lib.rs
github-actions / debug
doc list item without indentation
warning: doc list item without indentation
--> src/lib.rs:14:5
|
14 | //! through procedural macros.
| ^
|
= 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
help: indent this line
|
14 | //! through procedural macros.
| ++
Check warning on line 13 in src/lib.rs
github-actions / debug
doc list item without indentation
warning: doc list item without indentation
--> src/lib.rs:13:5
|
13 | //! But users can only provide one default implementation for each method
| ^
|
= 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
help: indent this line
|
13 | //! But users can only provide one default implementation for each method
| ++
Check warning on line 12 in src/lib.rs
github-actions / debug
doc list item without indentation
warning: doc list item without indentation
--> src/lib.rs:12:5
|
12 | //! writing the defaults involves a lot of boilerplate.
| ^
|
= 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
help: indent this line
|
12 | //! writing the defaults involves a lot of boilerplate.
| ++
Check warning on line 10 in src/lib.rs
github-actions / debug
doc list item without indentation
warning: doc list item without indentation
--> src/lib.rs:10:5
|
10 | //! if its return type is an associated type.
| ^
|
= 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
|
10 | //! if its return type is an associated type.
| ++
Check warning on line 73 in codegen/src/derive_fillers/derive_delegate.rs
github-actions / debug
you seem to be trying to move all elements into a new `Vec`
warning: you seem to be trying to move all elements into a new `Vec`
--> codegen/src/derive_fillers/derive_delegate.rs:73:30
|
73 | stmts: stmts.drain(..).collect(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(&mut stmts)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drain_collect
= note: `#[warn(clippy::drain_collect)]` on by default
Check warning on line 73 in codegen/src/derive_fillers/derive_delegate.rs
github-actions / debug
you seem to be trying to move all elements into a new `Vec`
warning: you seem to be trying to move all elements into a new `Vec`
--> codegen/src/derive_fillers/derive_delegate.rs:73:30
|
73 | stmts: stmts.drain(..).collect(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `std::mem::take(&mut stmts)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drain_collect
= note: `#[warn(clippy::drain_collect)]` on by default
Check warning on line 3 in codegen/src/derive_fillers/derive_delegate.rs
github-actions / debug
unused import: `punctuated::Punctuated`
warning: unused import: `punctuated::Punctuated`
--> codegen/src/derive_fillers/derive_delegate.rs:3:11
|
3 | use syn::{punctuated::Punctuated, spanned::Spanned};
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Check warning on line 3 in codegen/src/derive_fillers/derive_delegate.rs
github-actions / debug
unused import: `punctuated::Punctuated`
warning: unused import: `punctuated::Punctuated`
--> codegen/src/derive_fillers/derive_delegate.rs:3:11
|
3 | use syn::{punctuated::Punctuated, spanned::Spanned};
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default