Archived
1
0
Fork 0

chore: fix clippy warnings

This commit is contained in:
Dmitriy Pleshevskiy 2021-06-12 22:31:17 +03:00
parent b78651f81d
commit 7c29bcb113

View file

@ -29,7 +29,7 @@ pub(crate) fn upgrade_pending_migrations(
.clone()
.into_iter()
.find(|m| m.name() == &migration_name);
if let Some(migration) = target_migration.clone() {
if let Some(migration) = target_migration {
vec![migration].into()
} else {
eprintln!(r#"Cannot find migration with "{}" name"#, migration_name);