aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_expand/src')
-rw-r--r--crates/ra_hir_expand/src/name.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_hir_expand/src/name.rs b/crates/ra_hir_expand/src/name.rs
index a4d912b99..b3fa1efba 100644
--- a/crates/ra_hir_expand/src/name.rs
+++ b/crates/ra_hir_expand/src/name.rs
@@ -37,10 +37,6 @@ impl Name {
37 Name(Repr::TupleField(idx)) 37 Name(Repr::TupleField(idx))
38 } 38 }
39 39
40 pub fn for_crate_dependency(dep: &ra_db::Dependency) -> Name {
41 Name::new_text(dep.name.clone())
42 }
43
44 /// Shortcut to create inline plain text name 40 /// Shortcut to create inline plain text name
45 const fn new_inline_ascii(text: &[u8]) -> Name { 41 const fn new_inline_ascii(text: &[u8]) -> Name {
46 Name::new_text(SmolStr::new_inline_from_ascii(text.len(), text)) 42 Name::new_text(SmolStr::new_inline_from_ascii(text.len(), text))