From 00000070cd7c6c1da427bedfa169608bc19d50d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Wed, 30 Nov 2022 00:19:05 +0100 Subject: [PATCH] fix: clippy lint --- src/bin/01.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {