From 418d8b1c3064302a157ee14ac2aca33fd7d93efb Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Sun, 15 Jan 2023 11:51:17 -0600 Subject: [PATCH] clippy --- packages/hot-reload/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/hot-reload/src/lib.rs b/packages/hot-reload/src/lib.rs index c6e48082a..1f6ba7e21 100644 --- a/packages/hot-reload/src/lib.rs +++ b/packages/hot-reload/src/lib.rs @@ -261,10 +261,8 @@ pub fn init(cfg: Config) { let mut channels = channels.lock().unwrap(); for path in real_paths { // if this file type cannot be hot reloaded, rebuild the application - if path.extension().and_then(|p| p.to_str()) != Some("rs") { - if rebuild() { - return; - } + if path.extension().and_then(|p| p.to_str()) != Some("rs") && rebuild() { + return; } // find changes to the rsx in the file match file_map