Fix clippy linting warnings

This commit is contained in:
Tobie Morgan Hitchcock 2022-10-16 22:25:48 +01:00
parent 3e25debd3a
commit f0bb81b809

View file

@ -27,7 +27,7 @@ fn parse_impl<O>(input: &str, parser: impl Fn(&str) -> IResult<&str, O>) -> Resu
// Continue parsing the query
_ => match parser(input) {
// The query was parsed successfully
Ok((v, parsed)) if v.len() == 0 => Ok(parsed),
Ok((v, parsed)) if v.is_empty() => Ok(parsed),
// There was unparsed SQL remaining
Ok((_, _)) => Err(Error::QueryRemaining),
// There was an error when parsing the query