Skip to content

Commit d491688

Browse files
committed
clippy lints: redundant_clone is on by default, allow clippy::collapsible_if
1 parent b92636f commit d491688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#![allow(clippy::wrong_self_convention)] // perhaps `Rc` should be special-cased in Clippy?
1919
#![allow(clippy::write_with_newline)] // too pedantic
2020
#![allow(clippy::inefficient_to_string)] // this causes suggestions that result in `(*s).to_string()`
21+
#![allow(clippy::collapsible_if)] // too pedantic
2122
#![warn(clippy::needless_borrow)]
22-
#![warn(clippy::redundant_clone)]
2323
// Unit is now interned, and would probably be better as pass-by-copy, but
2424
// doing so causes a lot of & and * shenanigans that makes the code arguably
2525
// less clear and harder to read.

0 commit comments

Comments
 (0)