diff --git a/src/bin/01.rs b/src/bin/01.rs index ac4ce93..c9cbd71 100644 --- a/src/bin/01.rs +++ b/src/bin/01.rs @@ -1,5 +1,5 @@ pub fn part_one(input: &str) -> Option { - 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 {