We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unnecessary_map_or
1 parent dc158dc commit 07070cfCopy full SHA for 07070cf
src/indexmap.rs
@@ -1259,7 +1259,7 @@ where
1259
self.len() == other.len()
1260
&& self
1261
.iter()
1262
- .all(|(key, value)| other.get(key).map_or(false, |v| *value == *v))
+ .all(|(key, value)| other.get(key).is_some_and(|v| *value == *v))
1263
}
1264
1265
src/linear_map.rs
@@ -550,7 +550,7 @@ where
550
551
552
553
554
555
556
0 commit comments