diff options
author | cel 🌸 <cel@blos.sm> | 2023-08-15 20:01:08 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-08-15 20:01:08 +0100 |
commit | 1815681d8366d7b471b76e958bd11a24d2fe18a3 (patch) | |
tree | d80ae5696ab18fe7bb9c2aa3c43deb99e47dce16 /src | |
parent | 94fca8874c720ebdd5d18494094cf3048d575394 (diff) | |
download | markdown-rs-main.tar.gz markdown-rs-main.tar.bz2 markdown-rs-main.zip |
Diffstat (limited to '')
-rw-r--r-- | src/util/constant.rs | 2 |
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; |