From c9b4ac5be4daaabc062ab1ee663eba8594750003 Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Sun, 13 Jun 2021 09:24:16 +0530 Subject: clippy::redudant_borrow --- crates/vfs/src/file_set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/vfs') diff --git a/crates/vfs/src/file_set.rs b/crates/vfs/src/file_set.rs index 0a4590c8d..0011f73c9 100644 --- a/crates/vfs/src/file_set.rs +++ b/crates/vfs/src/file_set.rs @@ -111,7 +111,7 @@ impl FileSetConfig { let mut scratch_space = Vec::new(); let mut res = vec![FileSet::default(); self.len()]; for (file_id, path) in vfs.iter() { - let root = self.classify(&path, &mut scratch_space); + let root = self.classify(path, &mut scratch_space); res[root].insert(file_id, path.clone()) } res -- cgit v1.2.3