From 4012606910f320a6f71730c4505f3d4d4f8fcf38 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 21 Jun 2018 09:47:28 +0600 Subject: [PATCH] SendRequest execution fails with the entered unreachable code #329 --- CHANGES.md | 6 ++++++ src/client/pipeline.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d3f443101..2c317bc22 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,8 +2,14 @@ ## [0.6.14] - 2018-06-21 +### Added + * Allow to disable masking for websockets client +### Fixed + +* SendRequest execution fails with the "internal error: entered unreachable code" #329 + ## [0.6.13] - 2018-06-13 diff --git a/src/client/pipeline.rs b/src/client/pipeline.rs index dae7bbaf8..44e3d3a33 100644 --- a/src/client/pipeline.rs +++ b/src/client/pipeline.rs @@ -380,7 +380,7 @@ impl Pipeline { match self.timeout.as_mut().unwrap().poll() { Ok(Async::Ready(())) => return Err(SendRequestError::Timeout), Ok(Async::NotReady) => (), - Err(_) => unreachable!(), + Err(e) => return Err(e.into()), } } Ok(())