From 06ef6768870ec9e3f4b7d322d7a63f189bc73f18 Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 10 Aug 2024 14:01:38 +0200 Subject: [PATCH] clippy::unnested_or_patterns --- 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 65770e9..0eb1543 100644 --- a/src/lexer/sql/mod.rs +++ b/src/lexer/sql/mod.rs @@ -401,7 +401,7 @@ impl Splitter for Tokenizer { b',' => Ok((Some((&data[..1], TK_COMMA)), 1)), b'&' => Ok((Some((&data[..1], TK_BITAND)), 1)), b'~' => Ok((Some((&data[..1], TK_BITNOT)), 1)), - quote @ b'`' | quote @ b'\'' | quote @ b'"' => literal(data, quote), + quote @ (b'`' | b'\'' | b'"') => literal(data, quote), b'.' => { if let Some(b) = data.get(1) { if b.is_ascii_digit() {