diff options
-rw-r--r-- | crates/regex/src/config.rs | 4 | ||||
-rw-r--r-- | crates/regex/src/literal.rs | 2 | ||||
-rw-r--r-- | crates/regex/src/matcher.rs | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/crates/regex/src/config.rs b/crates/regex/src/config.rs index 1f81a802..6d2813ae 100644 --- a/crates/regex/src/config.rs +++ b/crates/regex/src/config.rs @@ -87,7 +87,7 @@ impl Config { Ok(ConfiguredHIR { original: pattern.to_string(), config: self.clone(), - analysis: analysis, + analysis, // If CRLF mode is enabled, replace `$` with `(?:\r?$)`. expr: if self.crlf { crlfify(expr) } else { expr }, }) @@ -282,7 +282,7 @@ impl ConfiguredHIR { original: self.original.clone(), config: self.config.clone(), analysis: self.analysis.clone(), - expr: expr, + expr, }) } } diff --git a/crates/regex/src/literal.rs b/crates/regex/src/literal.rs index f690bde2..cbb49dbe 100644 --- a/crates/regex/src/literal.rs +++ b/crates/regex/src/literal.rs @@ -35,7 +35,7 @@ impl LiteralSets { LiteralSets { prefixes: Literals::prefixes(expr), suffixes: Literals::suffixes(expr), - required: required, + required, } } diff --git a/crates/regex/src/matcher.rs b/crates/regex/src/matcher.rs index a85bca66..19cad740 100644 --- a/crates/regex/src/matcher.rs +++ b/crates/regex/src/matcher.rs @@ -54,9 +54,9 @@ impl RegexMatcherBuilder { trace!("final regex: {:?}", matcher.regex()); Ok(RegexMatcher { config: self.config.clone(), - matcher: matcher, - fast_line_regex: fast_line_regex, - non_matching_bytes: non_matching_bytes, + matcher, + fast_line_regex, + non_matching_bytes, }) } |