Skip to content

Commit 2d4b9b3

Browse files
authored
Make Parser::maybe_parse pub (#1364)
1 parent dfb8b81 commit 2d4b9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3383,7 +3383,7 @@ impl<'a> Parser<'a> {
33833383

33843384
/// Run a parser method `f`, reverting back to the current position if unsuccessful.
33853385
#[must_use]
3386-
fn maybe_parse<T, F>(&mut self, mut f: F) -> Option<T>
3386+
pub fn maybe_parse<T, F>(&mut self, mut f: F) -> Option<T>
33873387
where
33883388
F: FnMut(&mut Parser) -> Result<T, ParserError>,
33893389
{

0 commit comments

Comments
 (0)