Skip to content

Merge pull request #10 from A1-Triard/master #48

Merge pull request #10 from A1-Triard/master

Merge pull request #10 from A1-Triard/master #48

GitHub Actions / debug succeeded Nov 7, 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.73.0 (cc66ad468 2023-10-03)
  • cargo 1.73.0 (9c4383fb5 2023-08-26)
  • clippy 0.1.73 (cc66ad4 2023-10-03)

Annotations

Check warning on line 73 in codegen/src/derive_fillers/derive_delegate.rs

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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