summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2020-03-15 11:48:34 -0400
committerAndrew Gallant <jamslam@gmail.com>2020-03-15 13:19:14 -0400
commit9dd4bf8d7fe291ebdb3d3277d06d4708d98169e9 (patch)
treef45977e2e299ae322c2458911739f1c70a64042f
parentc4c43c733ee9a44d3a48aa7f22284a6db6f0f9c6 (diff)
style: fix rust-analyzer lint warnings
-rw-r--r--crates/regex/src/config.rs4
-rw-r--r--crates/regex/src/literal.rs2
-rw-r--r--crates/regex/src/matcher.rs6
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,
})
}