Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
farooqkz authored and Simon-Laux committed May 15, 2024
1 parent c4c2f7f commit 19b18d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/link_url/parse_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ fn parse_generic(input: &str) -> IResult<&str, LinkDestination, CustomError<&str
if !is_allowed_generic_scheme(scheme) {
return Err(nom::Err::Error(CustomError::InvalidLink));
}
let (input, colon) = char(':')(input)?;
let (input, _colon) = char(':')(input)?;
let (input, rest) = take_while1(is_not_white_space)(input)?;
let len = scheme.len().saturating_add(rest.len()).saturating_add(1);
if let Some(target) = i.get(0..len) {
Expand Down

0 comments on commit 19b18d1

Please sign in to comment.