aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-06-10 10:52:00 +0100
committerJonas Schievink <[email protected]>2020-06-10 11:38:58 +0100
commitbcf875f46ae5142c42ddac8094e1b6652182d4be (patch)
tree39bd0c4ffe2386efbbb75a4e3c7e23d732144de1 /crates/ra_hir_expand
parent781b514e5886cbaff88483cdeddc504effef299c (diff)
Clean up import_map.rs
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r--crates/ra_hir_expand/src/name.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/crates/ra_hir_expand/src/name.rs b/crates/ra_hir_expand/src/name.rs
index f306d9641..660bdfe33 100644
--- a/crates/ra_hir_expand/src/name.rs
+++ b/crates/ra_hir_expand/src/name.rs
@@ -67,13 +67,6 @@ impl Name {
67 _ => None, 67 _ => None,
68 } 68 }
69 } 69 }
70
71 pub fn as_text(&self) -> Option<&str> {
72 match &self.0 {
73 Repr::Text(s) => Some(s.as_str()),
74 _ => None,
75 }
76 }
77} 70}
78 71
79pub trait AsName { 72pub trait AsName {