diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-07-09 00:09:27 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-07-09 00:09:27 -0400 |
commit | c4d83c1daa34c8ef88a09f20d1388ec00595d881 (patch) | |
tree | ba4b5ac9e4462f80c4ca19c13f071a47d398ec31 | |
parent | 96cdf2e16dc81f8a5c7a824b2c778d847f35faea (diff) | |
download | nbsh-old-c4d83c1daa34c8ef88a09f20d1388ec00595d881.tar.gz nbsh-old-c4d83c1daa34c8ef88a09f20d1388ec00595d881.zip |
don't shadow the Send trait
-rw-r--r-- | src/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.rs b/src/state.rs index 27170fa..2951b2b 100644 --- a/src/state.rs +++ b/src/state.rs @@ -10,7 +10,7 @@ pub enum Error { InvalidCommandIndex { idx: usize }, #[snafu(display("error sending message: {}", source))] - Send { + Sending { source: futures::sync::mpsc::SendError<StateEvent>, }, @@ -138,7 +138,7 @@ pub fn update( } } .map(|_| ()) - .map_err(|e| Error::Send { source: e }) + .map_err(|e| Error::Sending { source: e }) } #[derive(Debug, Clone)] |