fix: clippy lint

This commit is contained in:
Matej Janezic 2022-11-30 00:19:05 +01:00
parent 00000060f7
commit 00000070cd
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 1 additions and 1 deletions

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> {