Skip to content

Commit 8262385

Browse files
committed
Fix clippy::explicit_auto_deref warning
``` warning: deref which would be done by auto-deref --> crossbeam-epoch/src/atomic.rs:1715:43 | 1715 | let arr: &[MaybeUninit<usize>] = &*owned; | ^^^^^^ help: try this: `owned` | = note: `#[warn(clippy::explicit_auto_deref)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref warning: deref which would be done by auto-deref --> crossbeam-skiplist/src/base.rs:1045:21 | 1045 | (*n).refs_and_height | ^^^^ help: try this: `n` | = note: `#[warn(clippy::explicit_auto_deref)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref ```
1 parent 6baa072 commit 8262385

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crossbeam-epoch/src/atomic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ mod tests {
17121712
#[test]
17131713
fn array_init() {
17141714
let owned = Owned::<[MaybeUninit<usize>]>::init(10);
1715-
let arr: &[MaybeUninit<usize>] = &*owned;
1715+
let arr: &[MaybeUninit<usize>] = &owned;
17161716
assert_eq!(arr.len(), 10);
17171717
}
17181718
}

crossbeam-skiplist/src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ where
10421042
}
10431043

10441044
// Installation failed. Decrement the reference count.
1045-
(*n).refs_and_height
1045+
n.refs_and_height
10461046
.fetch_sub(1 << HEIGHT_BITS, Ordering::Relaxed);
10471047

10481048
// We don't have the most up-to-date search results. Repeat the search.

0 commit comments

Comments
 (0)