From 767e94f5affa84b1439bdf8b7dc1776aea8486bc Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sun, 19 Nov 2023 09:57:28 +0900 Subject: [PATCH] fsmonitor: drop unneeded mut from make_fsmonitor_matcher() We only need &self.working_copy_path here. --- lib/src/local_working_copy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/local_working_copy.rs b/lib/src/local_working_copy.rs index 3d80850ce..55a66f7be 100644 --- a/lib/src/local_working_copy.rs +++ b/lib/src/local_working_copy.rs @@ -836,7 +836,7 @@ impl TreeState { #[instrument(skip_all)] fn make_fsmonitor_matcher( - &mut self, + &self, fsmonitor_kind: Option, ) -> Result { let (watchman_clock, changed_files) = match fsmonitor_kind {