Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix clippy::assigning_clones warning
``` warning: assigning the result of `Clone::clone()` may be inefficient --> crossbeam-skiplist/src/base.rs:1958:17 | 1958 | self.head = next_head.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.head.clone_from(&next_head)` | = 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 --> crossbeam-skiplist/src/base.rs:1985:17 | 1985 | self.tail = next_tail.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.tail.clone_from(&next_tail)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones ```
- Loading branch information