Skip to content
New issue

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

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

Already on GitHub? # to your account

docs: Remove explicit auto deref from PrivateCookieJar example #2028

Merged
merged 2 commits into from
Jun 22, 2023

Conversation

tyilo
Copy link
Contributor

@tyilo tyilo commented Jun 1, 2023

Motivation

Without it clippy produces the following lint:

warning: deref which would be done by auto-deref
   --> src/main.rs:101:9
    |
101 |         &*self.0
    |         ^^^^^^^^ help: try this: `&self.0`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
    = note: `#[warn(clippy::explicit_auto_deref)]` on by default

Solution

Trivial.

Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@davidpdrsn davidpdrsn enabled auto-merge (squash) June 22, 2023 21:47
@davidpdrsn davidpdrsn merged commit 40da647 into tokio-rs:main Jun 22, 2023
davidpdrsn added a commit that referenced this pull request Jul 16, 2023
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
@davidpdrsn davidpdrsn mentioned this pull request Jul 16, 2023
davidpdrsn added a commit that referenced this pull request Jul 17, 2023
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants