Skip to content

chore: rustfmt

chore: rustfmt #37

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / debug--release succeeded Jul 25, 2023 in 0s

debug--release

2 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 2
Note 0
Help 0

Versions

  • rustc 1.73.0-nightly (31395ec38 2023-07-24)
  • cargo 1.73.0-nightly (1b1555676 2023-07-18)
  • clippy 0.1.73 (31395ec 2023-07-24)

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--release

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--release

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