diff options
author | Florian Diebold <[email protected]> | 2020-01-10 17:40:45 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2020-01-11 22:33:04 +0000 |
commit | 4496e2a06a91e5825f355ce730af802643e8018a (patch) | |
tree | f0f41e2d9ff5045f34b38cd3d23bae11e5d56139 /crates/ra_hir_expand/src | |
parent | 15fc643e05bf8273e378243edbfb3be7aea7ce11 (diff) |
Apply review suggestions
Diffstat (limited to 'crates/ra_hir_expand/src')
-rw-r--r-- | crates/ra_hir_expand/src/name.rs | 4 |
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)) |