Ver Fonte

pass clippy

Evan Almloff há 2 anos atrás
pai
commit
63840bcca4
1 ficheiros alterados com 5 adições e 7 exclusões
  1. 5 7
      packages/hot-reload/src/lib.rs

+ 5 - 7
packages/hot-reload/src/lib.rs

@@ -155,7 +155,7 @@ pub fn init<Ctx: HotReloadingContext + Send + 'static>(cfg: Config<Ctx>) {
                             }
                             }
                         }
                         }
                         std::thread::sleep(std::time::Duration::from_millis(10));
                         std::thread::sleep(std::time::Duration::from_millis(10));
-                        if aborted.lock().unwrap().clone() {
+                        if *aborted.lock().unwrap() {
                             break;
                             break;
                         }
                         }
                     }
                     }
@@ -203,12 +203,10 @@ pub fn init<Ctx: HotReloadingContext + Send + 'static>(cfg: Config<Ctx>) {
                         for channel in &mut *channels.lock().unwrap() {
                         for channel in &mut *channels.lock().unwrap() {
                             send_msg(HotReloadMsg::Shutdown, channel);
                             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."
+                        );
                     }
                     }
                 };
                 };