Skip to content

Commit

Permalink
Error message for missing LinkFirst capture group
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Oct 13, 2024
1 parent ce98cd2 commit 24e5142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eipw-lint/src/lints/markdown/link_first.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl<'a, 'b, 'c> Visitor<'a, 'b, 'c> {
None => false,
Some(own_number) => matched
.get(1)
.unwrap()
.expect("missing capture group for `LinkFirst` regex")
.as_str()
.parse()
.map(|n: u32| n == own_number)
Expand Down

0 comments on commit 24e5142

Please sign in to comment.