Skip to content

Commit ede40e9

Browse files
committed
chore: fix unused warnings
1 parent edab9fe commit ede40e9

File tree

3 files changed

+292
-145
lines changed

3 files changed

+292
-145
lines changed

refinery_cli/src/migrate.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::path::Path;
33
use anyhow::Context;
44
use refinery_core::{
55
config::{Config, ConfigDbType},
6-
find_migration_files, Migration, MigrationType, Runner, SchemaVersion, Target,
6+
find_migration_files, Migration, MigrationType, SchemaVersion, Target,
77
};
88

99
use crate::cli::MigrateArgs;
@@ -19,8 +19,7 @@ pub fn handle_migration_command(args: MigrateArgs) -> anyhow::Result<()> {
1919
args.env_var.as_deref(),
2020
&args.path,
2121
&args.table_name,
22-
)?;
23-
Ok(())
22+
)
2423
}
2524

2625
#[allow(clippy::too_many_arguments)]
@@ -73,7 +72,7 @@ fn run_migrations(
7372
.context("Can't start tokio runtime")?;
7473

7574
runtime.block_on(async {
76-
Runner::new(&migrations)
75+
refinery_core::Runner::new(&migrations)
7776
.set_grouped(grouped)
7877
.set_target(target)
7978
.set_abort_divergent(divergent)
@@ -90,7 +89,7 @@ fn run_migrations(
9089
_db_type @ (ConfigDbType::Mysql | ConfigDbType::Postgres | ConfigDbType::Sqlite) => {
9190
cfg_if::cfg_if! {
9291
if #[cfg(any(feature = "mysql", feature = "postgresql", feature = "sqlite"))] {
93-
Runner::new(&migrations)
92+
refinery_core::Runner::new(&migrations)
9493
.set_grouped(grouped)
9594
.set_abort_divergent(divergent)
9695
.set_abort_missing(missing)
@@ -103,7 +102,6 @@ fn run_migrations(
103102
}
104103
}
105104
};
106-
107105
Ok(())
108106
}
109107

0 commit comments

Comments
 (0)