Skip to content

Commit 7536e05

Browse files
committed
syntax: remove superfluous borrow
Best guess is that the parser used to use something other than a `&str`, but I can't remember.
1 parent 81e328a commit 7536e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regex-syntax/src/ast/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ impl<'s, P: Borrow<Parser>> ParserI<'s, P> {
383383

384384
/// Return a reference to the pattern being parsed.
385385
fn pattern(&self) -> &str {
386-
self.pattern.borrow()
386+
self.pattern
387387
}
388388

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

0 commit comments

Comments
 (0)