Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy::explicit_auto_deref warning #876

Merged
merged 1 commit into from Jul 22, 2022
Merged

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Jul 22, 2022

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

```
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
```
@taiki-e
Copy link
Member Author

taiki-e commented Jul 22, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 22, 2022

Build succeeded:

@bors bors bot merged commit 99b14b1 into master Jul 22, 2022
@bors bors bot deleted the clippy-explicit_auto_deref branch July 22, 2022 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant