aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_syntax/src/parser_impl.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/parser_impl.rs b/crates/ra_syntax/src/parser_impl.rs
index d99615d72..1f43aa9f9 100644
--- a/crates/ra_syntax/src/parser_impl.rs
+++ b/crates/ra_syntax/src/parser_impl.rs
@@ -68,7 +68,7 @@ pub(crate) struct ParserImpl<'t> {
68} 68}
69 69
70impl<'t> ParserImpl<'t> { 70impl<'t> ParserImpl<'t> {
71 pub(crate) fn new(inp: &'t ParserInput<'t>) -> ParserImpl<'t> { 71 fn new(inp: &'t ParserInput<'t>) -> ParserImpl<'t> {
72 ParserImpl { 72 ParserImpl {
73 parser_input: inp, 73 parser_input: inp,
74 pos: InputPosition::new(), 74 pos: InputPosition::new(),
@@ -77,7 +77,7 @@ impl<'t> ParserImpl<'t> {
77 } 77 }
78 } 78 }
79 79
80 pub(crate) fn into_events(self) -> Vec<Event> { 80 fn into_events(self) -> Vec<Event> {
81 assert_eq!(self.nth(0), EOF); 81 assert_eq!(self.nth(0), EOF);
82 self.events 82 self.events
83 } 83 }