make stuff private

This commit is contained in:
Aleksey Kladov 2019-02-20 14:53:19 +03:00
parent 5b617e3bf8
commit df6efe62c5

View File

@ -68,7 +68,7 @@ pub(crate) struct ParserImpl<'t> {
}
impl<'t> ParserImpl<'t> {
pub(crate) fn new(inp: &'t ParserInput<'t>) -> ParserImpl<'t> {
fn new(inp: &'t ParserInput<'t>) -> ParserImpl<'t> {
ParserImpl {
parser_input: inp,
pos: InputPosition::new(),
@ -77,7 +77,7 @@ impl<'t> ParserImpl<'t> {
}
}
pub(crate) fn into_events(self) -> Vec<Event> {
fn into_events(self) -> Vec<Event> {
assert_eq!(self.nth(0), EOF);
self.events
}