diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-21 04:21:02 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-21 04:21:02 -0500 |
commit | 6fd29c2b573efdbf1c582c52c364c170adb65ea4 (patch) | |
tree | 6688d0590322e0d05db2bd173cbcab6a749982e2 | |
parent | 3a5398399221c7986a69c6cc90f7bb70669f39a8 (diff) | |
download | advent-of-code-6fd29c2b573efdbf1c582c52c364c170adb65ea4.tar.gz advent-of-code-6fd29c2b573efdbf1c582c52c364c170adb65ea4.zip |
clippy
-rw-r--r-- | src/2021/14/mod.rs | 1 | ||||
-rw-r--r-- | src/2021/19/mod.rs | 1 | ||||
-rw-r--r-- | src/main.rs | 9 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/2021/14/mod.rs b/src/2021/14/mod.rs index d018f53..b7e3714 100644 --- a/src/2021/14/mod.rs +++ b/src/2021/14/mod.rs @@ -16,7 +16,6 @@ fn process(polymer: &[u8], rules: &HashMap<Vec<u8>, u8>) -> Vec<u8> { polymer } -#[allow(clippy::type_complexity)] pub fn parse(fh: File) -> Result<(Vec<u8>, HashMap<Vec<u8>, u8>)> { let mut lines = parse::lines(fh); let polymer = lines.next().unwrap(); diff --git a/src/2021/19/mod.rs b/src/2021/19/mod.rs index 28c402e..1257aa6 100644 --- a/src/2021/19/mod.rs +++ b/src/2021/19/mod.rs @@ -1,6 +1,5 @@ use crate::prelude::*; -#[allow(clippy::type_complexity)] const ORIENTATIONS: &[&dyn Fn(Point) -> Point] = &[ &|p| Point::new(p.y, p.z, p.x), &|p| Point::new(-p.y, -p.z, p.x), diff --git a/src/main.rs b/src/main.rs index 9892123..7cb8a72 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,13 @@ +#![allow(clippy::cognitive_complexity)] +#![allow(clippy::missing_const_for_fn)] +#![allow(clippy::similar_names)] +#![allow(clippy::struct_excessive_bools)] +#![allow(clippy::too_many_arguments)] +#![allow(clippy::too_many_lines)] +#![allow(clippy::type_complexity)] +#![allow(clippy::collapsible_else_if)] #![allow(clippy::collapsible_if)] +#![allow(clippy::comparison_chain)] mod prelude; mod util; |