diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-07-09 00:32:22 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-07-09 00:32:22 -0400 |
commit | 6983acfaff676d527b0239be8ed6306672968c2b (patch) | |
tree | ced9c12e4edd01946ed08a14c141b1b8742a2545 | |
parent | c4d83c1daa34c8ef88a09f20d1388ec00595d881 (diff) | |
download | nbsh-old-6983acfaff676d527b0239be8ed6306672968c2b.tar.gz nbsh-old-6983acfaff676d527b0239be8ed6306672968c2b.zip |
ensure we notice if this returns a non-nil error type
-rw-r--r-- | src/state.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.rs b/src/state.rs index 2951b2b..93abb26 100644 --- a/src/state.rs +++ b/src/state.rs @@ -100,7 +100,7 @@ impl futures::future::Future for State { let event = futures::try_ready!(self .r .poll() - .map_err(|_| unreachable!())); + .map_err(|_: ()| unreachable!())); match event { Some(StateEvent::Start(idx, cmd, args)) => { self.command_start(idx, &cmd, &args)?; |