瀏覽代碼

formatting

Evan Almloff 2 年之前
父節點
當前提交
60219d3f65
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/hot-reload/src/lib.rs

+ 3 - 1
packages/hot-reload/src/lib.rs

@@ -261,7 +261,9 @@ pub fn init<Ctx: HotReloadingContext + Send + 'static>(cfg: Config<Ctx>) {
                             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") && rebuild() {
+                                if path.extension().and_then(|p| p.to_str()) != Some("rs")
+                                    && rebuild()
+                                {
                                     return;
                                 }
                                 // find changes to the rsx in the file