diff options
author | Aleksey Kladov <[email protected]> | 2019-02-20 11:53:19 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-20 11:53:19 +0000 |
commit | df6efe62c573c98bd0ea9eb137b4c8a5838f5a4a (patch) | |
tree | 2120b809a11b0e67fad9e0d9c21aa71d9b18b2f6 /crates/ra_syntax | |
parent | 5b617e3bf8252887a3eb1ce76d4b62cbee74e551 (diff) |
make stuff private
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/parser_impl.rs | 4 |
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 | ||
70 | impl<'t> ParserImpl<'t> { | 70 | impl<'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 | } |