Skip to content

Commit 95351bb

Browse files
committed
fix: run rustfmt
1 parent 43dd681 commit 95351bb

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

sqlx-postgres/src/connection/describe.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,14 @@ impl PgConnection {
186186

187187
fn fetch_type_by_oid(&mut self, oid: Oid) -> BoxFuture<'_, Result<PgTypeInfo, Error>> {
188188
Box::pin(async move {
189-
let (name, typ_type, category, relation_id, element, base_type): (String, i8, i8, Oid, Oid, Oid) = query_as(
189+
let (name, typ_type, category, relation_id, element, base_type): (
190+
String,
191+
i8,
192+
i8,
193+
Oid,
194+
Oid,
195+
Oid,
196+
) = query_as(
190197
// Converting the OID to `regtype` and then `text` will give us the name that
191198
// the type will need to be found at by search_path.
192199
"SELECT oid::regtype::text, \

sqlx-postgres/src/copy.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ impl<C: DerefMut<Target = PgConnection>> PgCopyIn<C> {
216216
let buf = conn.stream.write_buffer_mut();
217217

218218
// Write the CopyData format code and reserve space for the length.
219-
// This may end up sending an empty `CopyData` packet if, after this point,
219+
// This may end up sending an empty `CopyData` packet if, after this point,
220220
// we get canceled or read 0 bytes, but that should be fine.
221221
buf.put_slice(b"d\0\0\0\x04");
222222

0 commit comments

Comments
 (0)