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 1, 2024
1 parent 94d75ed commit 1147bc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mysql/writer/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ impl TableDef {
let mut table = Table::create();
table.table(Alias::new(&self.info.name));
for col in self.columns.iter() {
table.col(&mut col.write());
table.col(col.write());
}
table.engine(self.info.engine.to_string().as_str());
table.character_set(self.info.char_set.to_string().as_str());
Expand Down
2 changes: 1 addition & 1 deletion src/postgres/writer/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ impl TableDef {
let mut table = Table::create();
table.table(Alias::new(&self.info.name));
for col in self.columns.iter() {
table.col(&mut col.write());
table.col(col.write());
}
for primary_key in self.primary_key_constraints.iter() {
table.primary_key(&mut primary_key.write());
Expand Down

0 comments on commit 1147bc9

Please sign in to comment.