aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/name.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-08 09:05:55 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-08 09:05:55 +0000
commit3f4be819125ce4a22edd86721fa56b5caba99c2e (patch)
treebe93895ddc08c911585d9f7bc64623a3741f32c6 /crates/ra_hir/src/name.rs
parent4e444d2bc24d16284401444fd2154f63e0f96070 (diff)
parent122410d7aa34a32d468a3173858cbc8a2bbc68f5 (diff)
Merge #449
449: switch to new rowan API r=matklad a=matklad closes https://github.com/rust-analyzer/rust-analyzer/issues/448 Co-authored-by: Aleksey Kladov <[email protected]>
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 599285346..dee1c9c5c 100644
--- a/crates/ra_hir/src/name.rs
+++ b/crates/ra_hir/src/name.rs
@@ -74,13 +74,13 @@ pub(crate) trait AsName {
74 fn as_name(&self) -> Name; 74 fn as_name(&self) -> Name;
75} 75}
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())
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())
86 } 86 }