Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/path_transform.rs')
-rw-r--r--crates/ide-db/src/path_transform.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-db/src/path_transform.rs b/crates/ide-db/src/path_transform.rs
index 101046cf54..ff32badd7f 100644
--- a/crates/ide-db/src/path_transform.rs
+++ b/crates/ide-db/src/path_transform.rs
@@ -536,7 +536,7 @@ impl Ctx<'_> {
let name = ident_pat.name()?;
let make = editor.make();
- let temp_path = make.path_from_text(&name.text());
+ let temp_path = make.path_from_text(name.text());
let resolution = self.source_scope.speculative_resolve(&temp_path)?;
@@ -651,7 +651,7 @@ fn find_trait_for_assoc_item(
});
for name in names {
- if assoc_item_name.as_str() == name.as_str() {
+ if assoc_item_name == name.as_str() {
// It is fine to return the first match because in case of
// multiple possibilities, the exact trait must be disambiguated
// in the definition of trait being implemented, so this search