chore: remove unnecessary conversion (#1332)

This commit is contained in:
Taiki Endo
2019-07-20 12:10:42 -04:00
committed by Lucio Franco
parent 9d3e5aac08
commit 7a52ddcd09
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ where
match self.with_context(ctx, |s| s.shutdown()) {
Ok(()) => Poll::Ready(Ok(())),
Err(ref e) if e.kind() == io::ErrorKind::WouldBlock => return Poll::Pending,
Err(e) => return Poll::Ready(Err(e.into())),
Err(e) => return Poll::Ready(Err(e)),
}
}
}