From 5aae0fb4cbfa36db1d1bab1c5f5c04a970dc1d40 Mon Sep 17 00:00:00 2001 From: Jia-Xuan Liu Date: Tue, 10 Sep 2024 02:43:54 +0800 Subject: [PATCH] clippy --- datafusion/functions/src/unicode/strpos.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/functions/src/unicode/strpos.rs b/datafusion/functions/src/unicode/strpos.rs index 76c65716a88f8..4ff0ae3afe4ca 100644 --- a/datafusion/functions/src/unicode/strpos.rs +++ b/datafusion/functions/src/unicode/strpos.rs @@ -154,7 +154,7 @@ where if ascii_only { // If the substring is empty, the result is 1. if substring.as_bytes().is_empty() { - return T::Native::from_usize(1); + T::Native::from_usize(1) } else { T::Native::from_usize( string