diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-30 10:16:15 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-30 10:16:15 +0200 |
| commit | f81e8a403d6317803a23ba0d43c862e0cfea52ef (patch) | |
| tree | 6d82abf1c44be6ac16b150b027e492e1189ac6da /mumd/src/state.rs | |
| parent | 7fa6078759b095a0ffb5ede05a933249833c9e6f (diff) | |
| download | mum-f81e8a403d6317803a23ba0d43c862e0cfea52ef.tar.gz | |
mumlib: re-export error
Diffstat (limited to 'mumd/src/state.rs')
| -rw-r--r-- | mumd/src/state.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs index e666bcf..20fe660 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -15,7 +15,8 @@ use mumble_protocol::ping::PongPacket; use mumble_protocol::voice::Serverbound; use mumlib::command::{Command, CommandResponse}; use mumlib::config::Config; -use mumlib::error::{ChannelIdentifierError, Error}; +use mumlib::error::ChannelIdentifierError; +use mumlib::Error; use crate::state::user::UserDiff; use std::net::{SocketAddr, ToSocketAddrs}; use tokio::sync::{mpsc, watch}; @@ -381,7 +382,7 @@ impl State { .map(|mut e| e.next()) { Ok(Some(v)) => Ok(v), - _ => Err(mumlib::error::Error::InvalidServerAddr(host, port)), + _ => Err(Error::InvalidServerAddr(host, port)), } }), Box::new(move |pong| { |
