mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-09 15:40:32 +00:00
Make Parser::maybe_parse
pub (#1364)
This commit is contained in:
parent
dfb8b81630
commit
2d4b9b3e56
1 changed files with 1 additions and 1 deletions
|
@ -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>,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue