Fix clippy linting warnings
This commit is contained in:
parent
3e25debd3a
commit
f0bb81b809
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue