Skip to content

Commit a341a01

Browse files
cursoragentlovasoa
andcommitted
Fix: Use CopyFail instead of message::CopyFail
Co-authored-by: contact <[email protected]>
1 parent e2f4996 commit a341a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/postgres/copy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ impl<C: DerefMut<Target = PgConnection>> PgCopyIn<C> {
304304
impl<C: DerefMut<Target = PgConnection>> Drop for PgCopyIn<C> {
305305
fn drop(&mut self) {
306306
if let Some(mut conn) = self.conn.take() {
307-
conn.stream.write(message::CopyFail::new(
307+
conn.stream.write(CopyFail::new(
308308
"PgCopyIn dropped without calling finish() or fail()",
309309
));
310310
}

0 commit comments

Comments
 (0)