Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit13cd720

Browse files
Update src/parse.rs
Co-authored-by: Robin Stocker <robinst@canva.com>
1 parent33147ee commit13cd720

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎src/parse.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ impl<'a> Parser<'a> {
9393
/// Parse the regex and return an expression (AST) and a bit set with the indexes of groups
9494
/// that are referenced by backrefs.
9595
pub(crate)fnparse(re:&str) ->Result<ExprTree>{
96-
letmut options =RegexOptions::default();
97-
options.pattern =String::from(re);
98-
Self::parse_with_flags(&options.pattern, options.compute_flags())
96+
Self::parse_with_flags(re,RegexOptions::default().compute_flags())
9997
}
10098

10199
fnnew(re:&str) ->Parser<'_>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp