Skip to content

Commit

Permalink
clippy: disable return_self_not_must_use
Browse files Browse the repository at this point in the history
A new Clippy version added a new warning when a function that returns
`Self` doesn't have `#[must_use]`. I feel like all the cases reported
by it were false positives. Most were functions on `CommitBuilder`,
where we take `mut self` and return `Self`. I don't think I've ever
forgotten to use the result of those.
  • Loading branch information
martinvonz committed Jan 4, 2022
1 parent f9e6b26 commit 91e471c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#![feature(assert_matches)]
#![feature(map_first_last)]
#![deny(unused_must_use)]
#![allow(clippy::return_self_not_must_use)]

#[macro_use]
extern crate pest_derive;
Expand Down

0 comments on commit 91e471c

Please sign in to comment.