Skip to content

Commit

Permalink
cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Aug 31, 2024
1 parent e982dbd commit 56ed78f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/parser/autolink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,10 @@ pub fn url_match<'a>(

while link_end < size - i && !isspace(contents[i + link_end]) {
// basic test to detect whether we're in a normal markdown link - not exhaustive
if relaxed_autolinks && link_end > 0 && contents[i + link_end - 1] == b']' && contents[i + link_end] == b'('
if relaxed_autolinks
&& link_end > 0
&& contents[i + link_end - 1] == b']'
&& contents[i + link_end] == b'('
{
return None;
}
Expand Down

0 comments on commit 56ed78f

Please sign in to comment.