From 6721953fbed98e00d85032a11980fdf75d2ce6da Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 24 Sep 2025 00:58:03 +0800 Subject: format --- src/client/main.rs | 70 ++++++++++++++++++++++++------------------------------ 1 file changed, 31 insertions(+), 39 deletions(-) (limited to 'src/client/main.rs') diff --git a/src/client/main.rs b/src/client/main.rs index 699e17e..bf10455 100644 --- a/src/client/main.rs +++ b/src/client/main.rs @@ -21,47 +21,39 @@ pub(crate) mod connector; fn main() { #[cfg(not(debug_assertions))] { - _ = Signals::new( - [ - SIGHUP, - SIGINT, - SIGQUIT, - SIGTRAP, - SIGABRT, - SIGPIPE, - SIGALRM, - SIGTERM, - SIGUSR1, - SIGUSR2, - SIGCHLD, - SIGCONT, - SIGTSTP, - SIGTTIN, - SIGTTOU, - SIGURG, - SIGXCPU, - SIGXFSZ, - SIGVTALRM, - SIGPROF, - SIGWINCH, - #[cfg( - any( - target_os = "linux", - target_os = "android" - ) - )] - SIGSYS, - ], - ); // discard err + _ = Signals::new([ + SIGHUP, + SIGINT, + SIGQUIT, + SIGTRAP, + SIGABRT, + SIGPIPE, + SIGALRM, + SIGTERM, + SIGUSR1, + SIGUSR2, + SIGCHLD, + SIGCONT, + SIGTSTP, + SIGTTIN, + SIGTTOU, + SIGURG, + SIGXCPU, + SIGXFSZ, + SIGVTALRM, + SIGPROF, + SIGWINCH, + #[cfg( + any( + target_os = "linux", + target_os = "android" + ) + )] + SIGSYS, + ]); // discard err } let ip = "http://127.0.0.1:8081"; - let client = Client::new( - HTTPConnector::new( - ip, ip, "/", - ) - .unwrap(), - ) - .unwrap(); + let client = Client::new(HTTPConnector::new(ip, ip, "/").unwrap()).unwrap(); client.enter_loop(); } -- cgit v1.2.3