aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_mbe/src/lib.rs4
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);