Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Nov 21, 2023
1 parent cb5bf91 commit 91b68bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/postgres/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl QueryBuilder for PostgresQueryBuilder {
fn write_bytes(&self, bytes: &[u8], buffer: &mut String) {
write!(buffer, "'\\x").unwrap();
for b in bytes {
format!("{b:02X}");
write!(buffer, "{b:02X}").unwrap();
}
write!(buffer, "'").unwrap();
}
Expand Down
2 changes: 1 addition & 1 deletion src/backend/query_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ pub trait QueryBuilder:
fn write_bytes(&self, bytes: &[u8], buffer: &mut String) {
write!(buffer, "x'").unwrap();
for b in bytes {
format!("{b:02X}");
write!(buffer, "{b:02X}").unwrap();
}
write!(buffer, "'").unwrap();
}
Expand Down

0 comments on commit 91b68bb

Please sign in to comment.