From 19b18d1acfdc0b404ccb5974b788b9f5048d5afe Mon Sep 17 00:00:00 2001 From: Farooq Karimi Zadeh Date: Wed, 15 May 2024 17:35:27 +0330 Subject: [PATCH] fix warning --- src/parser/link_url/parse_link.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/link_url/parse_link.rs b/src/parser/link_url/parse_link.rs index 593f9bf..f4e288b 100644 --- a/src/parser/link_url/parse_link.rs +++ b/src/parser/link_url/parse_link.rs @@ -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) {