Skip to content

Commit

Permalink
syntax: remove superfluous borrow
Browse files Browse the repository at this point in the history
Best guess is that the parser used to use something other than a `&str`,
but I can't remember.
  • Loading branch information
BurntSushi committed Aug 26, 2023
1 parent 81e328a commit 7536e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regex-syntax/src/ast/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl<'s, P: Borrow<Parser>> ParserI<'s, P> {

/// Return a reference to the pattern being parsed.
fn pattern(&self) -> &str {
self.pattern.borrow()
self.pattern
}

/// Create a new error with the given span and error type.
Expand Down

0 comments on commit 7536e05

Please sign in to comment.