From cecf4545cb796e85bfbb969d79fbb3bb49f6caf3 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Fri, 8 Jul 2022 14:48:04 +0800 Subject: [PATCH] cargo fmt --- sea-orm-cli/src/commands.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sea-orm-cli/src/commands.rs b/sea-orm-cli/src/commands.rs index 7d37dc82..c55b66ef 100644 --- a/sea-orm-cli/src/commands.rs +++ b/sea-orm-cli/src/commands.rs @@ -88,9 +88,7 @@ pub async fn run_generate_command( } }; - let filter_skip_tables = |table: &String| -> bool { - !ignore_tables.contains(table) - }; + let filter_skip_tables = |table: &String| -> bool { !ignore_tables.contains(table) }; let database_name = if !is_sqlite { // The database name should be the first element of the path string @@ -503,6 +501,7 @@ mod tests { _ => unreachable!(), } } + #[test] fn test_create_new_migration() { let migration_name = "test_name";