aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/constant.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/constant.rs')
-rw-r--r--src/util/constant.rs2
1 files changed, 1 insertions, 1 deletions
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;