aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/name.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/name.rs')
-rw-r--r--crates/ra_hir/src/name.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/name.rs b/crates/ra_hir/src/name.rs
index dee1c9c5c..3e6ce8b95 100644
--- a/crates/ra_hir/src/name.rs
+++ b/crates/ra_hir/src/name.rs
@@ -76,13 +76,13 @@ pub(crate) trait AsName {
76 76
77impl AsName for ast::NameRef { 77impl AsName for ast::NameRef {
78 fn as_name(&self) -> Name { 78 fn as_name(&self) -> Name {
79 Name::new(self.text()) 79 Name::new(self.text().clone())
80 } 80 }
81} 81}
82 82
83impl AsName for ast::Name { 83impl AsName for ast::Name {
84 fn as_name(&self) -> Name { 84 fn as_name(&self) -> Name {
85 Name::new(self.text()) 85 Name::new(self.text().clone())
86 } 86 }
87} 87}
88 88