fsmonitor: drop unneeded mut from make_fsmonitor_matcher()

We only need &self.working_copy_path here.
This commit is contained in:
Yuya Nishihara 2023-11-19 09:57:28 +09:00
parent c16c89bc27
commit 767e94f5af

View file

@ -836,7 +836,7 @@ impl TreeState {
#[instrument(skip_all)]
fn make_fsmonitor_matcher(
&mut self,
&self,
fsmonitor_kind: Option<FsmonitorKind>,
) -> Result<FsmonitorMatcher, SnapshotError> {
let (watchman_clock, changed_files) = match fsmonitor_kind {