Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix clippy::needless_borrowed_reference warning
``` warning: dereferencing a tuple pattern where every element takes a reference --> crossbeam-skiplist/src/base.rs:1721:30 | 1721 | (Some(ref next), &Some(ref t)) if next.key() >= t.key() => { | ^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference = note: `#[warn(clippy::needless_borrowed_reference)]` on by default help: try removing the `&` and `ref` parts | 1721 - (Some(ref next), &Some(ref t)) if next.key() >= t.key() => { 1721 + (Some(ref next), Some(t)) if next.key() >= t.key() => { | warning: dereferencing a tuple pattern where every element takes a reference --> crossbeam-skiplist/src/base.rs:1748:14 | 1748 | (&Some(ref h), Some(next)) if h.key() >= next.key() => { | ^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference help: try removing the `&` and `ref` parts | 1748 - (&Some(ref h), Some(next)) if h.key() >= next.key() => { 1748 + (Some(h), Some(next)) if h.key() >= next.key() => { | ```
- Loading branch information