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 48d89a3 commit ba580fb
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 ba580fb

Please sign in to comment.