Skip to content

Commit 10bf975

Browse files
authored
Update mod.rs
1 parent 7e94189 commit 10bf975

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pg/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,10 @@ impl AsyncPgConnection {
436436
};
437437
let (fake_oid, fake_array_oid) = metadata_lookup.fake_oids(index);
438438
let [real_oid, real_array_oid] = unwrap_oids(&real_metadata);
439-
real_oids.extend([
439+
real_oids.extend(dbg!([
440440
(fake_oid, real_oid),
441441
(fake_array_oid, real_array_oid),
442-
]);
442+
]));
443443
}
444444

445445
// Replace fake OIDs with real OIDs in `bind_collector.metadata`
@@ -452,7 +452,7 @@ impl AsyncPgConnection {
452452
// If `oid` is not a key in `real_oids`, then `HasSqlType::metadata` returned it as a
453453
// hardcoded value instead of being lied to by `PgAsyncMetadataLookup`. In this case,
454454
// the existing value is already the real OID, so it's kept.
455-
.unwrap_or(dbg!(oid))
455+
.unwrap_or_else(|| dbg!(oid))
456456
});
457457
*m = PgTypeMetadata::new(oid, array_oid);
458458
}

0 commit comments

Comments
 (0)