aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe/src/tt_cursor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_mbe/src/tt_cursor.rs')
-rw-r--r--crates/ra_mbe/src/tt_cursor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_mbe/src/tt_cursor.rs b/crates/ra_mbe/src/tt_cursor.rs
index d06bfbf9f..3128cb9ae 100644
--- a/crates/ra_mbe/src/tt_cursor.rs
+++ b/crates/ra_mbe/src/tt_cursor.rs
@@ -60,7 +60,7 @@ impl<'a> TtCursor<'a> {
60 self.bump(); 60 self.bump();
61 Ok(sub) 61 Ok(sub)
62 } 62 }
63 _ => Err(ParseError::ParseError), 63 _ => Err(ParseError::Expected(String::from("subtree"))),
64 } 64 }
65 } 65 }
66 66
@@ -83,7 +83,7 @@ impl<'a> TtCursor<'a> {
83 self.bump(); 83 self.bump();
84 Ok(()) 84 Ok(())
85 } else { 85 } else {
86 Err(ParseError::ParseError) 86 Err(ParseError::Expected(format!("`{}`", char)))
87 } 87 }
88 } 88 }
89} 89}