Skip to content

Commit

Permalink
Ignore return_self_not_must_use clippy lint
Browse files Browse the repository at this point in the history
    error: missing `#[must_use]` attribute on a method returning `Self`
     --> src/display.rs:5:5
      |
    5 |     fn as_display(&self) -> Self;
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = note: `-D clippy::return-self-not-must-use` implied by `-D clippy::all`
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
  • Loading branch information
dtolnay committed Dec 18, 2021
1 parent 604e47c commit 7966eb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7421
clippy::doc_markdown,
clippy::module_name_repetitions,
clippy::return_self_not_must_use,
)]

mod aserror;
Expand Down

0 comments on commit 7966eb3

Please sign in to comment.