mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-30 16:10:23 +00:00
clippy: disable return_self_not_must_use
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.
This commit is contained in:
parent
f9e6b263a1
commit
91e471cb73
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
||||||
#![feature(assert_matches)]
|
#![feature(assert_matches)]
|
||||||
#![feature(map_first_last)]
|
#![feature(map_first_last)]
|
||||||
#![deny(unused_must_use)]
|
#![deny(unused_must_use)]
|
||||||
|
#![allow(clippy::return_self_not_must_use)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate pest_derive;
|
extern crate pest_derive;
|
||||||
|
|
Loading…
Reference in a new issue