crates/fs/src/fs_watcher.rs 🔗
@@ -203,10 +203,13 @@ impl GlobalWatcher {
state.path_registrations.remove(®istration_state.path);
drop(state);
- self.watcher
- .lock()
- .unwatch(®istration_state.path)
- .log_err();
+
+ if !cfg!(target_os = "linux") {
+ self.watcher
+ .lock()
+ .unwatch(®istration_state.path)
+ .log_err();
+ }
}
}
}