From 966c23f5290275ce17564f6027a17ec20cd6078f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 17 Mar 2021 01:27:56 +0100 Subject: avoid converting types into themselves via .into() (clippy::useless-conversion) example: let x: String = String::from("hello world").into(); --- crates/base_db/src/fixture.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/base_db') 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 { change.change_file(file_id, Some(Arc::new(text))); let path = VfsPath::new_virtual_path(meta.path); - file_set.insert(file_id, path.into()); + file_set.insert(file_id, path); files.push(file_id); file_id.0 += 1; } -- cgit v1.2.3