From 843e408f3f152c845ff6460e8d592323300ff025 Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 10 Aug 2024 13:54:57 +0200 Subject: [PATCH] clippy::range_plus_one --- src/lexer/sql/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lexer/sql/mod.rs b/src/lexer/sql/mod.rs index 6918b5a..65770e9 100644 --- a/src/lexer/sql/mod.rs +++ b/src/lexer/sql/mod.rs @@ -417,7 +417,7 @@ impl Splitter for Tokenizer { b'[' => { if let Some(i) = memchr(b']', data) { // Keep original quotes / '[' ... ’]' - Ok((Some((&data[0..i + 1], TK_ID)), i + 1)) + Ok((Some((&data[0..=i], TK_ID)), i + 1)) } else { Err(Error::UnterminatedBracket(None)) }