fix: clippy lint
This commit is contained in:
parent
00000060f7
commit
00000070cd
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue