aboutsummaryrefslogtreecommitdiff
path: root/crates/base_db/src
diff options
context:
space:
mode:
authorMatthias Krüger <[email protected]>2021-03-17 00:27:56 +0000
committerMatthias Krüger <[email protected]>2021-03-17 00:27:56 +0000
commit966c23f5290275ce17564f6027a17ec20cd6078f (patch)
tree9e977a29eaf10d1733340563ef31fda064e37400 /crates/base_db/src
parent83e6940efb42675226adb8d2856c095b8dce36c5 (diff)
avoid converting types into themselves via .into() (clippy::useless-conversion)
example: let x: String = String::from("hello world").into();
Diffstat (limited to 'crates/base_db/src')
-rw-r--r--crates/base_db/src/fixture.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/base_db/src/fixture.rs b/crates/base_db/src/fixture.rs
index cad6866aa..8d4641355 100644
--- a/crates/base_db/src/fixture.rs
+++ b/crates/base_db/src/fixture.rs
@@ -197,7 +197,7 @@ impl ChangeFixture {
197 197
198 change.change_file(file_id, Some(Arc::new(text))); 198 change.change_file(file_id, Some(Arc::new(text)));
199 let path = VfsPath::new_virtual_path(meta.path); 199 let path = VfsPath::new_virtual_path(meta.path);
200 file_set.insert(file_id, path.into()); 200 file_set.insert(file_id, path);
201 files.push(file_id); 201 files.push(file_id);
202 file_id.0 += 1; 202 file_id.0 += 1;
203 } 203 }