Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/name.rs')
-rw-r--r--crates/hir-expand/src/name.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-expand/src/name.rs b/crates/hir-expand/src/name.rs
index 4996542543..e8b3e312aa 100644
--- a/crates/hir-expand/src/name.rs
+++ b/crates/hir-expand/src/name.rs
@@ -62,7 +62,7 @@ impl<'a> UnescapedName<'a> {
it.clone()
}
}
- Repr::TupleField(it) => SmolStr::new(&it.to_string()),
+ Repr::TupleField(it) => SmolStr::new(it.to_string()),
}
}
}
@@ -139,7 +139,7 @@ impl Name {
pub fn to_smol_str(&self) -> SmolStr {
match &self.0 {
Repr::Text(it) => it.clone(),
- Repr::TupleField(it) => SmolStr::new(&it.to_string()),
+ Repr::TupleField(it) => SmolStr::new(it.to_string()),
}
}