From 6bcc7c47aeabd50f56c4bdbebe3d8575fc5b9260 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 28 Dec 2018 21:38:50 -0800 Subject: [PATCH] Fix clippy warning --- postgres/src/copy_out_reader.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/postgres/src/copy_out_reader.rs b/postgres/src/copy_out_reader.rs index b8244f26..9cf8174b 100644 --- a/postgres/src/copy_out_reader.rs +++ b/postgres/src/copy_out_reader.rs @@ -16,6 +16,7 @@ impl<'a> Drop for CopyOutReader<'a> { } impl<'a> CopyOutReader<'a> { + #[allow(clippy::new_ret_no_self)] pub(crate) fn new(stream: tokio_postgres::CopyOut) -> Result, Error> { let mut it = stream.wait(); let cur = match it.next() {