From 554b8e7e2398e4d60d56cd0e8d4a863123ffea66 Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Wed, 6 Dec 2023 22:25:44 -0800 Subject: [PATCH] fix clippy --- datafusion/expr/src/window_frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/expr/src/window_frame.rs b/datafusion/expr/src/window_frame.rs index 81bb30462345..2701ca1ecf3b 100644 --- a/datafusion/expr/src/window_frame.rs +++ b/datafusion/expr/src/window_frame.rs @@ -167,7 +167,7 @@ pub fn regularize_window_order_by( // with constant value as sort key. // If an ORDER BY clause is present but has more than one column, it is // unchanged. - if order_by.len() == 0 { + if order_by.is_empty() { order_by.push(Expr::Sort(Sort::new( Box::new(Expr::Literal(ScalarValue::UInt64(Some(1)))), true,