From 4a88b4b7efe711df8ae72fe7e594efd50ffec0c8 Mon Sep 17 00:00:00 2001 From: Emmie Maeda Date: Sun, 8 Sep 2024 17:40:49 -0400 Subject: [PATCH] Resolve clippy lint. .any(condition) is the same as .find(condition).is_some(), since we aren't using the result of .find() --- deepwell/src/database/seeder/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepwell/src/database/seeder/data.rs b/deepwell/src/database/seeder/data.rs index 6e449388ec..09c9fe4016 100644 --- a/deepwell/src/database/seeder/data.rs +++ b/deepwell/src/database/seeder/data.rs @@ -52,7 +52,7 @@ impl SeedData { for (site, pages) in &mut site_pages { // Verify that the site exists assert!( - sites.iter().find(|s| &s.slug == site).is_some(), + sites.iter().any(|s| &s.slug == site), "No site with slug {}", site, );