mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -07:00
style: fix rust-analyzer lint warnings
This commit is contained in:
parent
c4c43c733e
commit
9dd4bf8d7f
@ -87,7 +87,7 @@ impl Config {
|
|||||||
Ok(ConfiguredHIR {
|
Ok(ConfiguredHIR {
|
||||||
original: pattern.to_string(),
|
original: pattern.to_string(),
|
||||||
config: self.clone(),
|
config: self.clone(),
|
||||||
analysis: analysis,
|
analysis,
|
||||||
// If CRLF mode is enabled, replace `$` with `(?:\r?$)`.
|
// If CRLF mode is enabled, replace `$` with `(?:\r?$)`.
|
||||||
expr: if self.crlf { crlfify(expr) } else { expr },
|
expr: if self.crlf { crlfify(expr) } else { expr },
|
||||||
})
|
})
|
||||||
@ -282,7 +282,7 @@ impl ConfiguredHIR {
|
|||||||
original: self.original.clone(),
|
original: self.original.clone(),
|
||||||
config: self.config.clone(),
|
config: self.config.clone(),
|
||||||
analysis: self.analysis.clone(),
|
analysis: self.analysis.clone(),
|
||||||
expr: expr,
|
expr,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ impl LiteralSets {
|
|||||||
LiteralSets {
|
LiteralSets {
|
||||||
prefixes: Literals::prefixes(expr),
|
prefixes: Literals::prefixes(expr),
|
||||||
suffixes: Literals::suffixes(expr),
|
suffixes: Literals::suffixes(expr),
|
||||||
required: required,
|
required,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,9 +54,9 @@ impl RegexMatcherBuilder {
|
|||||||
trace!("final regex: {:?}", matcher.regex());
|
trace!("final regex: {:?}", matcher.regex());
|
||||||
Ok(RegexMatcher {
|
Ok(RegexMatcher {
|
||||||
config: self.config.clone(),
|
config: self.config.clone(),
|
||||||
matcher: matcher,
|
matcher,
|
||||||
fast_line_regex: fast_line_regex,
|
fast_line_regex,
|
||||||
non_matching_bytes: non_matching_bytes,
|
non_matching_bytes,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user