diff options
Diffstat (limited to 'cli/util/file_watcher.rs')
-rw-r--r-- | cli/util/file_watcher.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/util/file_watcher.rs b/cli/util/file_watcher.rs index 247ae49d8..b2628760b 100644 --- a/cli/util/file_watcher.rs +++ b/cli/util/file_watcher.rs @@ -278,7 +278,9 @@ where deno_core::unsync::spawn(async move { loop { let received_changed_paths = watcher_receiver.recv().await; - *changed_paths_.borrow_mut() = received_changed_paths.clone(); + changed_paths_ + .borrow_mut() + .clone_from(&received_changed_paths); match *watcher_.restart_mode.lock() { WatcherRestartMode::Automatic => { |