Skip to content

Commit 6cca97a

Browse files
Jesse-Bakkerayman-sigma
authored andcommitted
Make Parser::maybe_parse pub (apache#1364)
1 parent 58460ac commit 6cca97a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3397,7 +3397,7 @@ impl<'a> Parser<'a> {
33973397

33983398
/// Run a parser method `f`, reverting back to the current position if unsuccessful.
33993399
#[must_use]
3400-
fn maybe_parse<T, F>(&mut self, mut f: F) -> Option<T>
3400+
pub fn maybe_parse<T, F>(&mut self, mut f: F) -> Option<T>
34013401
where
34023402
F: FnMut(&mut Parser) -> Result<T, ParserError>,
34033403
{

0 commit comments

Comments
 (0)