diff --git a/src/bin/client/main.rs b/src/bin/client/main.rs index 147ea2be2..638ac8216 100644 --- a/src/bin/client/main.rs +++ b/src/bin/client/main.rs @@ -36,10 +36,7 @@ fn main() { let exit = Arc::new(Condvar::new()); let e = exit.clone(); - CtrlC::set_handler(move || { - e.notify_all(); - }); - + CtrlC::set_handler(move || { e.notify_all(); }); let mutex = Mutex::new(()); let _ = exit.wait(mutex.lock().unwrap()).unwrap(); }