From 759ffc1770a6b40e506cd207fe8f4e712f0a104f Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Tue, 30 Sep 2025 14:03:25 +0400 Subject: [PATCH] fix clippy --- parser/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/src/parser.rs b/parser/src/parser.rs index 1ce9337f2..b4188df44 100644 --- a/parser/src/parser.rs +++ b/parser/src/parser.rs @@ -181,7 +181,7 @@ impl<'a> Parser<'a> { } else if matches!(token[0], b':' | b'@' | b'$' | b'#') { Ok(Expr::Variable(from_bytes(token))) } else { - let variable_str = std::str::from_utf8(&token) + let variable_str = std::str::from_utf8(token) .map_err(|e| Error::Custom(format!("non-utf8 positional variable id: {e}")))?; let variable_id = variable_str .parse::()