Skip to content

Commit

Permalink
clippy::range_plus_one
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenn committed Aug 10, 2024
1 parent 768b42d commit 843e408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lexer/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 843e408

Please sign in to comment.