From 63840bcca415c94c4872e0d67039fe2eb25e198b Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Fri, 13 Jan 2023 17:55:11 -0600 Subject: [PATCH] pass clippy --- packages/hot-reload/src/lib.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/hot-reload/src/lib.rs b/packages/hot-reload/src/lib.rs index 52769f6d3..7038dffdb 100644 --- a/packages/hot-reload/src/lib.rs +++ b/packages/hot-reload/src/lib.rs @@ -155,7 +155,7 @@ pub fn init(cfg: Config) { } } std::thread::sleep(std::time::Duration::from_millis(10)); - if aborted.lock().unwrap().clone() { + if *aborted.lock().unwrap() { break; } } @@ -203,12 +203,10 @@ pub fn init(cfg: Config) { for channel in &mut *channels.lock().unwrap() { send_msg(HotReloadMsg::Shutdown, channel); } - } else { - if log { - println!( - "Rebuild needed... shutting down hot reloading.\nManually rebuild the application to view futher changes." - ); - } + } else if log { + println!( + "Rebuild needed... shutting down hot reloading.\nManually rebuild the application to view futher changes." + ); } };