Fix clippy warning

This commit is contained in:
Steven Fackler
2018-12-28 21:38:50 -08:00
parent fb027d79db
commit 6bcc7c47ae

View File

@@ -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<CopyOutReader<'a>, Error> {
let mut it = stream.wait();
let cur = match it.next() {