diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-07-09 00:08:56 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-07-09 00:08:56 -0400 |
commit | 96cdf2e16dc81f8a5c7a824b2c778d847f35faea (patch) | |
tree | 29fb98c57d21fcdf6dd8df71bc81c9a9a9a1ad43 | |
parent | 27463b78a4c12c9840f9df95e4278a050b73152e (diff) | |
download | nbsh-old-96cdf2e16dc81f8a5c7a824b2c778d847f35faea.tar.gz nbsh-old-96cdf2e16dc81f8a5c7a824b2c778d847f35faea.zip |
this doesn't need to have an actual value
-rw-r--r-- | src/state.rs | 5 |
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)?; |