Make Parser::maybe_parse pub (#1364)

This commit is contained in:
Jesse 2024-08-07 20:30:01 +02:00 committed by GitHub
parent dfb8b81630
commit 2d4b9b3e56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3383,7 +3383,7 @@ impl<'a> Parser<'a> {
/// Run a parser method `f`, reverting back to the current position if unsuccessful.
#[must_use]
fn maybe_parse<T, F>(&mut self, mut f: F) -> Option<T>
pub fn maybe_parse<T, F>(&mut self, mut f: F) -> Option<T>
where
F: FnMut(&mut Parser) -> Result<T, ParserError>,
{