From c4d83c1daa34c8ef88a09f20d1388ec00595d881 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 9 Jul 2019 00:09:27 -0400 Subject: don't shadow the Send trait --- src/state.rs | 4 ++-- 1 file 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, }, @@ -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)] -- cgit v1.2.3-54-g00ecf