Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed May 3, 2024
1 parent a8184da commit 33c0dae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/prepare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ impl Write for SqlWriterValues {
}
}

impl ToString for SqlWriterValues {
fn to_string(&self) -> String {
self.string.clone()
impl std::fmt::Display for SqlWriterValues {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.string)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/table/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl TableCreateStatement {
/// Add a new table column
pub fn col<C: IntoColumnDef>(&mut self, column: C) -> &mut Self {
let mut column = column.into_column_def();
column.table = self.table.clone();
column.table.clone_from(&self.table);
self.columns.push(column);
self
}
Expand Down

0 comments on commit 33c0dae

Please sign in to comment.