From 307c6fec618d5e509c754362687253ef44bb5f3f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 1 Jul 2020 09:53:53 +0200 Subject: Use CrateName for semantic names --- crates/ra_hir_expand/src/name.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir_expand/src/name.rs') diff --git a/crates/ra_hir_expand/src/name.rs b/crates/ra_hir_expand/src/name.rs index 1b0303685..969a2e5b8 100644 --- a/crates/ra_hir_expand/src/name.rs +++ b/crates/ra_hir_expand/src/name.rs @@ -117,7 +117,7 @@ impl AsName for ast::FieldKind { impl AsName for ra_db::Dependency { fn as_name(&self) -> Name { - Name::new_text(self.name.clone()) + Name::new_text(SmolStr::new(&*self.name)) } } -- cgit v1.2.3