doc(derive_filter): document options #38
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / debug
succeeded
Jul 25, 2023 in 0s
debug
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.0-beta.3 (a47f796a3 2023-07-22)
- cargo 1.72.0-beta.3 (dd6536b8e 2023-07-18)
- clippy 0.1.72 (a47f796 2023-07-22)
Annotations
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
Loading