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() {