Skip to content

Commit d1c2f2c

Browse files
committed
Address Clippy lint: contains instead of iter().any()
1 parent 8e3e64d commit d1c2f2c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/build/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -582,11 +582,8 @@ mod constant_conversion {{
582582
.chain(s.constants.iter().map(|c| c.constant))
583583
.collect();
584584
for s2 in systems.iter().filter(|s2| s2.name != s.name) {
585-
if s.from.iter().any(|&f| f == s2.name) && s2.from.iter().any(|&f| f == s.name) {
586-
for c in constants1
587-
.iter()
588-
.filter(|&c| !s.refl_blacklist.iter().any(|b| c == b))
589-
{
585+
if s.from.contains(s2.name) && s2.from.contains(s.name) {
586+
for c in constants1.iter().filter(|&c| !s.refl_blacklist.contains(c)) {
590587
write!(f, "
591588
#[test]
592589
#[allow(non_snake_case)]

0 commit comments

Comments
 (0)