fix: clippy lint

This commit is contained in:
2022-11-30 00:19:05 +01:00
parent 00000060f7
commit 00000070cd

View File

@@ -1,5 +1,5 @@
pub fn part_one(input: &str) -> Option<u32> {
let count = input.matches("(").count() - input.matches(")").count();
let count = input.matches('(').count() - input.matches(')').count();
Some(count.try_into().unwrap())
}
pub fn part_two(input: &str) -> Option<u32> {