Skip to content

Commit 9068176

Browse files
committed
Cargo fmt
1 parent 35a6bb9 commit 9068176

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/parse_assertions.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,12 @@ pub fn parse_position_comments(
7575
}
7676
has_left_caret = c == '<';
7777
}
78-
static REGEX: Lazy<Regex> = Lazy::new(|| Regex::new("[!\\w_\\-.]+").unwrap());
78+
static REGEX: Lazy<Regex> =
79+
Lazy::new(|| Regex::new("[!\\w_\\-.]+").unwrap());
7980

8081
// If the comment node contains an arrow and a highlight name, record the
8182
// highlight name and the position.
82-
if let (true, Some(mat)) = (
83-
has_arrow,
84-
REGEX
85-
.find(&text[arrow_end..]),
86-
) {
83+
if let (true, Some(mat)) = (has_arrow, REGEX.find(&text[arrow_end..])) {
8784
assertion_ranges.push((node.start_position(), node.end_position()));
8885
let tree_sitter::Point { row, column } = position;
8986
result.push(Assertion {

0 commit comments

Comments
 (0)