regex: some minor polish

I think I already did a clean-up of this crate when I moved it to regex
1.9, so the polish here is very minor.
This commit is contained in:
Andrew Gallant
2023-09-25 17:21:28 -04:00
parent 798f8981eb
commit 82d3183a04
6 changed files with 16 additions and 127 deletions

View File

@@ -831,9 +831,10 @@ impl RegexCaptures {
#[cfg(test)]
mod tests {
use super::*;
use grep_matcher::{LineMatchKind, Matcher};
use super::*;
// Test that enabling word matches does the right thing and demonstrate
// the difference between it and surrounding the regex in `\b`.
#[test]