From f0bb81b8093a472f3cf4fb5bbda15ad18069dfbd Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 16 Oct 2022 22:25:48 +0100 Subject: [PATCH] Fix clippy linting warnings --- lib/src/sql/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/sql/parser.rs b/lib/src/sql/parser.rs index e6cb0db8..a29cf47a 100644 --- a/lib/src/sql/parser.rs +++ b/lib/src/sql/parser.rs @@ -27,7 +27,7 @@ fn parse_impl(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