Skip to content

Commit 37e51b4

Browse files
committed
clippy
1 parent 276dac3 commit 37e51b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/postgres/extension.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ impl ExtensionBuilder for PostgresQueryBuilder {
1616
write!(sql, "{}", create.name).unwrap();
1717

1818
if let Some(schema) = create.schema.as_ref() {
19-
write!(sql, " WITH SCHEMA {}", schema).unwrap();
19+
write!(sql, " WITH SCHEMA {schema}").unwrap();
2020
}
2121

2222
if let Some(version) = create.version.as_ref() {
23-
write!(sql, " VERSION {}", version).unwrap();
23+
write!(sql, " VERSION {version}").unwrap();
2424
}
2525

2626
if create.cascade {

src/table/column.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl fmt::Display for PgDateTruncUnit {
241241
PgDateTruncUnit::Century => "century",
242242
PgDateTruncUnit::Millennium => "millennium",
243243
};
244-
write!(f, "{}", text)
244+
write!(f, "{text}")
245245
}
246246
}
247247

0 commit comments

Comments
 (0)