Skip to content

Commit

Permalink
chore: Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leo91000 committed Nov 17, 2022
1 parent cb423aa commit db5ec81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ where
let Some(code) = e.code() else { return Err(SqlxError::Database(e).into()); };

if code == "42P01" {
install_schema(executor.clone(), escaped_schema.as_str()).await?;
install_schema(executor.clone(), escaped_schema).await?;
} else {
return Err(SqlxError::Database(e).into());
}
Expand All @@ -69,7 +69,7 @@ where
let mut tx = executor.clone().begin().await?;

for migration_statement in migration_statements.iter() {
let sql = migration_statement.replace(":ARCHIMEDES_SCHEMA", &escaped_schema);
let sql = migration_statement.replace(":ARCHIMEDES_SCHEMA", escaped_schema);
query(sql.as_str()).execute(&mut tx).await?;
}

Expand Down

0 comments on commit db5ec81

Please sign in to comment.