From ee7ab0b83ff5bf2934519cd6718ccea620edea1e Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 23 Jan 2024 17:23:54 -0500 Subject: [PATCH] Fix clippy failures (#8972) --- datafusion/physical-expr/src/functions.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/datafusion/physical-expr/src/functions.rs b/datafusion/physical-expr/src/functions.rs index 57e04c6ecfd3..ac959dec6e89 100644 --- a/datafusion/physical-expr/src/functions.rs +++ b/datafusion/physical-expr/src/functions.rs @@ -559,10 +559,10 @@ pub fn create_physical_fun( }), BuiltinScalarFunction::InStr => Arc::new(|args| match args[0].data_type() { DataType::Utf8 => { - make_scalar_function(string_expressions::instr::)(args) + make_scalar_function_inner(string_expressions::instr::)(args) } DataType::LargeUtf8 => { - make_scalar_function(string_expressions::instr::)(args) + make_scalar_function_inner(string_expressions::instr::)(args) } other => internal_err!("Unsupported data type {other:?} for function instr"), }), @@ -790,10 +790,10 @@ pub fn create_physical_fun( }), BuiltinScalarFunction::EndsWith => Arc::new(|args| match args[0].data_type() { DataType::Utf8 => { - make_scalar_function(string_expressions::ends_with::)(args) + make_scalar_function_inner(string_expressions::ends_with::)(args) } DataType::LargeUtf8 => { - make_scalar_function(string_expressions::ends_with::)(args) + make_scalar_function_inner(string_expressions::ends_with::)(args) } other => { internal_err!("Unsupported data type {other:?} for function ends_with")