From 1be27e17f88b0f64ad374fd655f53dbdfbd39744 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 21 Jun 2018 10:05:20 +0600 Subject: [PATCH] convert timer error to io error --- src/client/pipeline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/pipeline.rs b/src/client/pipeline.rs index 50318a16f..4173c7d2c 100644 --- a/src/client/pipeline.rs +++ b/src/client/pipeline.rs @@ -392,7 +392,7 @@ impl Pipeline { match self.timeout.as_mut().unwrap().poll() { Ok(Async::Ready(())) => return Err(SendRequestError::Timeout), Ok(Async::NotReady) => (), - Err(e) => return Err(e.into()), + Err(e) => return Err(io::Error::new(io::ErrorKind::Other, e).into()), } } Ok(())