diff --git a/migra-cli/src/commands/list.rs b/migra-cli/src/commands/list.rs index 0952573..8965a83 100644 --- a/migra-cli/src/commands/list.rs +++ b/migra-cli/src/commands/list.rs @@ -1,10 +1,7 @@ use crate::config::Config; use crate::database::{DatabaseConnection, PostgresConnection}; use crate::error::{ErrorKind, StdResult}; -use crate::migration::{ - filter_pending_migrations, DatabaseMigrationManager, Migration, MigrationManager, - MigrationNames, -}; +use crate::migration::{filter_pending_migrations, Migration, MigrationManager, MigrationNames}; const EM_DASH: char = '—'; diff --git a/migra-cli/src/migration.rs b/migra-cli/src/migration.rs index b4781c7..a35d863 100644 --- a/migra-cli/src/migration.rs +++ b/migra-cli/src/migration.rs @@ -108,16 +108,18 @@ where r#"CREATE TABLE IF NOT EXISTS migrations ( id serial PRIMARY KEY, name text NOT NULL UNIQUE - )"# + )"#, ) } fn insert_migration_info(&mut self, name: &str) -> StdResult { - self.conn.execute("INSERT INTO migrations (name) VALUES ($1)", &[&name]) + self.conn + .execute("INSERT INTO migrations (name) VALUES ($1)", &[&name]) } fn delete_migration_info(&mut self, name: &str) -> StdResult { - self.conn.execute("DELETE FROM migrations WHERE name = $1", &[&name]) + self.conn + .execute("DELETE FROM migrations WHERE name = $1", &[&name]) } }