소스 검색

fix hot reload macro on unix

Evan Almloff 1 년 전
부모
커밋
53380c9956
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/hot-reload/src/file_watcher.rs

+ 1 - 1
packages/hot-reload/src/file_watcher.rs

@@ -161,7 +161,7 @@ pub fn init<Ctx: HotReloadingContext + Send + 'static>(cfg: Config<Ctx>) {
             // This will cause the local socket listener to fail to open
             // We check if the file socket is already open from an old session and then delete it
             if hot_reload_socket_path.exists() {
-                let _ = std::fs::remove_file(hot_reload_socket_path);
+                let _ = std::fs::remove_file(hot_reload_socket_path.clone());
             }
         }