diff options
Diffstat (limited to 'src/client/connector.rs')
| -rw-r--r-- | src/client/connector.rs | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/client/connector.rs b/src/client/connector.rs index c1a5f7f..aa476aa 100644 --- a/src/client/connector.rs +++ b/src/client/connector.rs @@ -34,24 +34,18 @@ pub trait Connection { fn get_ip(&self) -> Option<IpAddr>; fn force_network(&mut self) { - _ = Executor::new( - NETWORK_T.as_ref(), - ["true"], - (), - ); + _ = Executor::new(NETWORK_T.as_ref(), ["true"], ()); } fn init<'a>(&self, c: &Client<'a, Self>) -> std::result::Result<(), Self::Err> where Self: std::marker::Sized, { - self.ntfy( - format!( - r#"New client: + self.ntfy(format!( + r#"New client: {c} "#, - ), - ) + )) } fn reinit(&mut self) { @@ -98,14 +92,7 @@ pub trait Connection { } Result::Err(e) => { #[cfg(debug_assertions)] - std::eprintln!( - "[{}:{}:{}] {} = {:#?}", - std::file!(), - std::line!(), - std::column!(), - std::stringify!(e), - &&e as &dyn std::fmt::Debug, - ); + std::eprintln!("[{}:{}:{}] {} = {:#?}", std::file!(), std::line!(), std::column!(), std::stringify!(e), &&e as &dyn std::fmt::Debug,); } } } |
