From 9dd4bf8d7fe291ebdb3d3277d06d4708d98169e9 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sun, 15 Mar 2020 11:48:34 -0400 Subject: style: fix rust-analyzer lint warnings --- crates/regex/src/config.rs | 4 ++-- crates/regex/src/literal.rs | 2 +- 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, }) } -- cgit v1.2.3