Skip to content

Commit 81f9710

Browse files
committed
Make Parser::{new, finish} private.
Since feed is private having these public is useless. For the moment Parser is still public because pub functions in the private table submodule take Parser, a curious assymetry in Rust's visibility rules.
1 parent dc0483a commit 81f9710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ struct FootnoteDefinition<'a> {
300300
}
301301

302302
impl<'a, 'o> Parser<'a, 'o> {
303-
pub fn new(
303+
fn new(
304304
arena: &'a Arena<AstNode<'a>>,
305305
root: &'a AstNode<'a>,
306306
options: &'o ComrakOptions,
@@ -1006,7 +1006,7 @@ impl<'a, 'o> Parser<'a, 'o> {
10061006
}
10071007
}
10081008

1009-
pub fn finish(&mut self) -> &'a AstNode<'a> {
1009+
fn finish(&mut self) -> &'a AstNode<'a> {
10101010
self.finalize_document();
10111011
self.postprocess_text_nodes(self.root);
10121012
self.root

0 commit comments

Comments
 (0)