cargo fmt

This commit is contained in:
Billy Chan 2022-07-08 14:48:04 +08:00
parent b0ea1138b4
commit cecf4545cb
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -88,9 +88,7 @@ pub async fn run_generate_command(
} }
}; };
let filter_skip_tables = |table: &String| -> bool { let filter_skip_tables = |table: &String| -> bool { !ignore_tables.contains(table) };
!ignore_tables.contains(table)
};
let database_name = if !is_sqlite { let database_name = if !is_sqlite {
// The database name should be the first element of the path string // The database name should be the first element of the path string
@ -503,6 +501,7 @@ mod tests {
_ => unreachable!(), _ => unreachable!(),
} }
} }
#[test] #[test]
fn test_create_new_migration() { fn test_create_new_migration() {
let migration_name = "test_name"; let migration_name = "test_name";