From be76c2aa51733a0cf495e92659fbcbe527f41149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 6 Jun 2021 23:26:24 +0200 Subject: cargo fmt --- mumd/src/error.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'mumd/src/error.rs') diff --git a/mumd/src/error.rs b/mumd/src/error.rs index eb63df8..da1bdd3 100644 --- a/mumd/src/error.rs +++ b/mumd/src/error.rs @@ -1,4 +1,4 @@ -use mumble_protocol::{Serverbound, control::ControlPacket}; +use mumble_protocol::{control::ControlPacket, Serverbound}; use mumlib::error::ConfigError; use std::fmt; use tokio::sync::mpsc; @@ -17,12 +17,11 @@ pub enum TcpError { impl fmt::Display for TcpError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { - TcpError::NoConnectionInfoReceived - => write!(f, "No connection info received"), - TcpError::TlsConnectorBuilderError(e) - => write!(f, "Error building TLS connector: {}", e), - TcpError::TlsConnectError(e) - => write!(f, "TLS error when connecting: {}", e), + TcpError::NoConnectionInfoReceived => write!(f, "No connection info received"), + TcpError::TlsConnectorBuilderError(e) => { + write!(f, "Error building TLS connector: {}", e) + } + TcpError::TlsConnectError(e) => write!(f, "TLS error when connecting: {}", e), TcpError::SendError(e) => write!(f, "Couldn't send packet: {}", e), TcpError::IOError(e) => write!(f, "IO error: {}", e), } @@ -44,7 +43,7 @@ impl From for TcpError { pub enum UdpError { NoConnectionInfoReceived, DisconnectBeforeCryptSetup, - + IOError(std::io::Error), } -- cgit v1.2.1