From b68b37d9743f655fa80665fd82301147075822bb Mon Sep 17 00:00:00 2001 From: cmdlineluser <99486669+cmdlineluser@users.noreply.github.com> Date: Fri, 27 Oct 2023 11:55:15 +0100 Subject: [PATCH] unneeded variable name --- crates/polars-sql/src/functions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/polars-sql/src/functions.rs b/crates/polars-sql/src/functions.rs index 92462e553196..b51a1cf4908a 100644 --- a/crates/polars-sql/src/functions.rs +++ b/crates/polars-sql/src/functions.rs @@ -703,7 +703,7 @@ impl SqlFunctionVisitor<'_> { InitCap => self.visit_unary(|e| e.str().to_titlecase()), Left => self.try_visit_binary(|e, length| { Ok(match length { - Expr::Literal(LiteralValue::Int64(_n)) => { + Expr::Literal(LiteralValue::Int64(_)) => { e.str().slice(lit(0), length) }, _ => {