From 1815681d8366d7b471b76e958bd11a24d2fe18a3 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 15 Aug 2023 20:01:08 +0100 Subject: Fix cargo clippy lints --- src/util/constant.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/constant.rs') diff --git a/src/util/constant.rs b/src/util/constant.rs index 65704d0..67442a3 100644 --- a/src/util/constant.rs +++ b/src/util/constant.rs @@ -2742,7 +2742,7 @@ mod tests { fn longest<'a>(list: &[&'a str]) -> Option<&'a str> { let mut max = 0; let mut result = None; - for name in list.iter() { + for name in list { let len = name.len(); if len > max { max = len; -- cgit