From 7c29bcb1139318b5801767dc8bb6abfa368aca15 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 12 Jun 2021 22:31:17 +0300 Subject: [PATCH] chore: fix clippy warnings --- migra_cli/src/commands/upgrade.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migra_cli/src/commands/upgrade.rs b/migra_cli/src/commands/upgrade.rs index 6775131..1171ee8 100644 --- a/migra_cli/src/commands/upgrade.rs +++ b/migra_cli/src/commands/upgrade.rs @@ -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);