aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-08-15 20:01:08 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-08-15 20:01:08 +0100
commit1815681d8366d7b471b76e958bd11a24d2fe18a3 (patch)
treed80ae5696ab18fe7bb9c2aa3c43deb99e47dce16
parent94fca8874c720ebdd5d18494094cf3048d575394 (diff)
downloadmarkdown-rs-main.tar.gz
markdown-rs-main.tar.bz2
markdown-rs-main.zip
Fix cargo clippy lintsHEADmain
Diffstat (limited to '')
-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;