Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Aug 2, 2024
1 parent ec2f9c4 commit dc2d710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/mysql/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl TableBuilder for MysqlQueryBuilder {
}
TableAlterOption::DropForeignKey(name) => {
let mut foreign_key = TableForeignKey::new();
foreign_key.name(&name.to_string());
foreign_key.name(name.to_string());
let drop = ForeignKeyDropStatement {
foreign_key,
table: None,
Expand Down
2 changes: 1 addition & 1 deletion src/backend/postgres/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl TableBuilder for PostgresQueryBuilder {
}
TableAlterOption::DropForeignKey(name) => {
let mut foreign_key = TableForeignKey::new();
foreign_key.name(&name.to_string());
foreign_key.name(name.to_string());
let drop = ForeignKeyDropStatement {
foreign_key,
table: None,
Expand Down

0 comments on commit dc2d710

Please sign in to comment.