Skip to content

Commit 1f78b5f

Browse files
refactor: apply clippy suggestion to use contains
Signed-off-by: Saurav Sharma <appdroiddeveloper@gmail.com>
1 parent e36b3ab commit 1f78b5f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cli.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,7 @@ where
171171
id = sqlx_migration.id().to_string();
172172
status = "\u{2713}";
173173
applied_time = sqlx_migration.applied_time().to_string();
174-
} else if !apply_plan
175-
.iter()
176-
.any(|&plan_migration| plan_migration == migration)
177-
{
174+
} else if !apply_plan.contains(&migration) {
178175
status = "\u{2194}";
179176
}
180177

0 commit comments

Comments
 (0)