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

Clippy warning: missing #[must_use] attribute on a method returning Self #876

Closed
takkuumi opened this issue Dec 31, 2021 · 2 comments
Closed
Labels
A-build E-easy Call for participation: Experience needed to fix: Easy / not much E-help-wanted Call for participation: Help is requested to fix this issue.

Comments

@takkuumi
Copy link

warning: missing `#[must_use]` attribute on a method returning `Self`
  --> /root/health-service/target/debug/build/rpc-c5819cd3df3465ae/out/auth_log.rs:79:5
   |
79 | /     pub fn accept_gzip(mut self) -> Self {
80 | |       self.inner = self.inner.accept_gzip();
81 | |       self
82 | |     }
   | |_____^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use

Rustc version:

rustc 1.59.0-nightly (b60e32c82 2021-12-30)

@davidpdrsn davidpdrsn added A-build E-easy Call for participation: Experience needed to fix: Easy / not much E-help-wanted Call for participation: Help is requested to fix this issue. labels Dec 31, 2021
@LucioFranco
Copy link
Member

Is this a new warning? This could totally be a nightly bug or something?

@takkuumi
Copy link
Author

Is this a new warning? This could totally be a nightly bug or something?

I use nightly rust, warning since from version 1.59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build E-easy Call for participation: Experience needed to fix: Easy / not much E-help-wanted Call for participation: Help is requested to fix this issue.
Projects
None yet
Development

No branches or pull requests

3 participants