From 53380c9956c7dda54d9251d3bc48eaa0ec4e89be Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Thu, 25 Jan 2024 09:24:03 -0600 Subject: [PATCH] fix hot reload macro on unix --- packages/hot-reload/src/file_watcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hot-reload/src/file_watcher.rs b/packages/hot-reload/src/file_watcher.rs index b3be7de11..867fbd293 100644 --- a/packages/hot-reload/src/file_watcher.rs +++ b/packages/hot-reload/src/file_watcher.rs @@ -161,7 +161,7 @@ pub fn init(cfg: Config) { // 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()); } }