Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve assigning_clones clippy lint
warning: assigning the result of `Clone::clone()` may be inefficient --> impl/src/ast.rs:85:21 | 85 | *display = attrs.display.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `display.clone_from(&attrs.display)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones = note: `#[warn(clippy::assigning_clones)]` on by default warning: assigning the result of `Clone::clone()` may be inefficient --> impl/src/expand.rs:158:9 | 158 | display_implied_bounds = display.implied_bounds.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `display_implied_bounds.clone_from(&display.implied_bounds)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones warning: assigning the result of `Clone::clone()` may be inefficient --> impl/src/expand.rs:402:21 | 402 | display_implied_bounds = display.implied_bounds.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `display_implied_bounds.clone_from(&display.implied_bounds)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
- Loading branch information