summaryrefslogtreecommitdiffstats
path: root/grep-regex/src/crlf.rs
diff options
context:
space:
mode:
Diffstat (limited to 'grep-regex/src/crlf.rs')
-rw-r--r--grep-regex/src/crlf.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/grep-regex/src/crlf.rs b/grep-regex/src/crlf.rs
index 361e087e..09e78b9f 100644
--- a/grep-regex/src/crlf.rs
+++ b/grep-regex/src/crlf.rs
@@ -76,9 +76,8 @@ impl Matcher for CRLFMatcher {
caps: &mut RegexCaptures,
) -> Result<bool, NoError> {
caps.strip_crlf(false);
- let r = self.regex.captures_read_at(
- caps.locations_mut(), haystack, at,
- );
+ let r =
+ self.regex.captures_read_at(caps.locations_mut(), haystack, at);
if !r.is_some() {
return Ok(false);
}
@@ -163,8 +162,8 @@ pub fn crlfify(expr: Hir) -> Hir {
#[cfg(test)]
mod tests {
- use regex_syntax::Parser;
use super::crlfify;
+ use regex_syntax::Parser;
fn roundtrip(pattern: &str) -> String {
let expr1 = Parser::new().parse(pattern).unwrap();