aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-07-09 00:08:56 -0400
committerJesse Luehrs <doy@tozt.net>2019-07-09 00:08:56 -0400
commit96cdf2e16dc81f8a5c7a824b2c778d847f35faea (patch)
tree29fb98c57d21fcdf6dd8df71bc81c9a9a9a1ad43
parent27463b78a4c12c9840f9df95e4278a050b73152e (diff)
downloadnbsh-old-96cdf2e16dc81f8a5c7a824b2c778d847f35faea.tar.gz
nbsh-old-96cdf2e16dc81f8a5c7a824b2c778d847f35faea.zip
this doesn't need to have an actual value
-rw-r--r--src/state.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/state.rs b/src/state.rs
index 0965aea..27170fa 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -16,9 +16,6 @@ pub enum Error {
#[snafu(display("error printing output: {}", source))]
PrintOutput { source: std::io::Error },
-
- #[snafu(display("this error should not be possible"))]
- Unreachable,
}
pub type Result<T> = std::result::Result<T, Error>;
@@ -103,7 +100,7 @@ impl futures::future::Future for State {
let event = futures::try_ready!(self
.r
.poll()
- .map_err(|_| Error::Unreachable));
+ .map_err(|_| unreachable!()));
match event {
Some(StateEvent::Start(idx, cmd, args)) => {
self.command_start(idx, &cmd, &args)?;