diff options
author | Edwin Cheng <[email protected]> | 2019-05-02 16:59:13 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-05-02 16:59:13 +0100 |
commit | 91745c62f82e8e7aef214edb898497f853bf9c93 (patch) | |
tree | 7636fd4df033cdb444bb7ab637280768bb0a9790 /crates/ra_mbe/src | |
parent | 1446d620c5a8865708b238550e4c0457577a0cd1 (diff) |
Compare text instead
Diffstat (limited to 'crates/ra_mbe/src')
-rw-r--r-- | crates/ra_mbe/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_mbe/src/lib.rs b/crates/ra_mbe/src/lib.rs index 08bb89a6a..a2dce9c8a 100644 --- a/crates/ra_mbe/src/lib.rs +++ b/crates/ra_mbe/src/lib.rs | |||
@@ -112,8 +112,8 @@ impl PartialEq for crate::Separator { | |||
112 | use crate::Separator::*; | 112 | use crate::Separator::*; |
113 | 113 | ||
114 | match (self, other) { | 114 | match (self, other) { |
115 | (Ident(ref a), Ident(ref b)) => a == b, | 115 | (Ident(ref a), Ident(ref b)) => a.text == b.text, |
116 | (Literal(ref a), Literal(ref b)) => a == b, | 116 | (Literal(ref a), Literal(ref b)) => a.text == b.text, |
117 | (Puncts(ref a), Puncts(ref b)) if a.len() == b.len() => { | 117 | (Puncts(ref a), Puncts(ref b)) if a.len() == b.len() => { |
118 | let a_iter = a.iter().map(|a| a.char); | 118 | let a_iter = a.iter().map(|a| a.char); |
119 | let b_iter = b.iter().map(|b| b.char); | 119 | let b_iter = b.iter().map(|b| b.char); |