Skip to content

Commit

Permalink
Resolve clippy lint.
Browse files Browse the repository at this point in the history
.any(condition) is the same as .find(condition).is_some(), since we
aren't using the result of .find()
  • Loading branch information
emmiegit committed Sep 8, 2024
1 parent e8a4571 commit 4a88b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepwell/src/database/seeder/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 4a88b4b

Please sign in to comment.