Fix misc clippy warnings

Why does it want me to use bytecount? It's not even faster
This commit is contained in:
2020-12-16 20:05:08 +01:00
parent bd8d525d13
commit 308fbc503f
4 changed files with 8 additions and 3 deletions

View File

@@ -15,6 +15,8 @@ fn split_nums<'a>(s: &'a str) -> impl Iterator<Item = u32> + 'a {
})
}
// Clippy allow here because this type is used exactly once
#[allow(clippy::type_complexity)]
fn read_input(input: &mut dyn Read) -> (HashMap<String, Vec<RangeInclusive<u32>>>, Vec<Vec<u32>>) {
let mut lines = Lines::new(input).filter(|s| !s.is_empty());