|
1 | 1 | #![cfg_attr(test, deny(warnings))] |
2 | | -#![warn(rust_2018_idioms)] |
3 | 2 | // While we're getting used to 2018: |
| 3 | +#![warn(rust_2018_idioms)] |
4 | 4 | // Clippy isn't enforced by CI (@alexcrichton isn't a fan). |
5 | | -#![allow(clippy::boxed_local)] // bug rust-lang-nursery/rust-clippy#1123 |
| 5 | +#![allow(clippy::blacklisted_name)] // frequently used in tests |
6 | 6 | #![allow(clippy::cyclomatic_complexity)] // large project |
7 | 7 | #![allow(clippy::derive_hash_xor_eq)] // there's an intentional incoherence |
8 | 8 | #![allow(clippy::explicit_into_iter_loop)] // explicit loops are clearer |
9 | 9 | #![allow(clippy::explicit_iter_loop)] // explicit loops are clearer |
10 | 10 | #![allow(clippy::identity_op)] // used for vertical alignment |
11 | 11 | #![allow(clippy::implicit_hasher)] // large project |
12 | 12 | #![allow(clippy::large_enum_variant)] // large project |
| 13 | +#![allow(clippy::new_without_default)] // explicit is maybe clearer |
13 | 14 | #![allow(clippy::redundant_closure)] // closures can be less verbose |
14 | 15 | #![allow(clippy::redundant_closure_call)] // closures over try catch blocks |
15 | 16 | #![allow(clippy::too_many_arguments)] // large project |
16 | 17 | #![allow(clippy::type_complexity)] // there's an exceptionally complex type |
17 | 18 | #![allow(clippy::wrong_self_convention)] // perhaps `Rc` should be special-cased in Clippy? |
18 | 19 | #![warn(clippy::needless_borrow)] |
19 | 20 | #![warn(clippy::redundant_clone)] |
| 21 | +// Unit is now interned, and would probably be better as pass-by-copy, but |
| 22 | +// doing so causes a lot of & and * shenanigans that makes the code arguably |
| 23 | +// less clear and harder to read. |
| 24 | +#![allow(clippy::trivially_copy_pass_by_ref)] |
| 25 | +// exhaustively destructuring ensures future fields are handled |
| 26 | +#![allow(clippy::unneeded_field_pattern)] |
20 | 27 |
|
21 | 28 | use std::fmt; |
22 | 29 |
|
|
0 commit comments