Skip to content

Commit

Permalink
🚨 fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Odonno committed Apr 12, 2024
1 parent c2ecc6c commit fa9db52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,11 +627,9 @@ fn get_rollback_statements(
.collect::<Vec<_>>()
.join("\n");

let all_statements = vec![
remove_table_statements,
let all_statements = [remove_table_statements,
remove_fields_statements,
remove_events_statements,
];
remove_events_statements];
let all_statements = all_statements.join("\n");

Ok(all_statements)
Expand Down
3 changes: 1 addition & 2 deletions tests/library/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ async fn list_blog_migrations() -> Result<()> {
let now_timestamp = now.timestamp();
let now_timestamp_range = (now_timestamp - 2)..(now_timestamp + 2);

let first_migration = migrations_applied
.get(0)
let first_migration = migrations_applied.first()
.context("Cannot get first migration")?;

ensure!(
Expand Down

0 comments on commit fa9db52

Please sign in to comment.