diff options
author | Maan2003 <[email protected]> | 2021-06-13 04:54:16 +0100 |
---|---|---|
committer | Maan2003 <[email protected]> | 2021-06-13 04:54:16 +0100 |
commit | c9b4ac5be4daaabc062ab1ee663eba8594750003 (patch) | |
tree | 6090c8c38c735875c916255920525cf5fff45c75 /crates/vfs/src | |
parent | d6737e55fb49d286b5e646f57975b27b2c95ce92 (diff) |
clippy::redudant_borrow
Diffstat (limited to 'crates/vfs/src')
-rw-r--r-- | crates/vfs/src/file_set.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
111 | let mut scratch_space = Vec::new(); | 111 | let mut scratch_space = Vec::new(); |
112 | let mut res = vec![FileSet::default(); self.len()]; | 112 | let mut res = vec![FileSet::default(); self.len()]; |
113 | for (file_id, path) in vfs.iter() { | 113 | for (file_id, path) in vfs.iter() { |
114 | let root = self.classify(&path, &mut scratch_space); | 114 | let root = self.classify(path, &mut scratch_space); |
115 | res[root].insert(file_id, path.clone()) | 115 | res[root].insert(file_id, path.clone()) |
116 | } | 116 | } |
117 | res | 117 | res |