From 819b88c1e3028bdae5d6da2ec029ff876736b4fc Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Sun, 14 Apr 2024 19:32:20 -0700 Subject: [PATCH] Fix format --- datafusion/expr/src/type_coercion/functions.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/datafusion/expr/src/type_coercion/functions.rs b/datafusion/expr/src/type_coercion/functions.rs index 2fdaaf483431..cc33128a7a0e 100644 --- a/datafusion/expr/src/type_coercion/functions.rs +++ b/datafusion/expr/src/type_coercion/functions.rs @@ -28,9 +28,7 @@ use arrow::{ use datafusion_common::utils::{coerced_fixed_size_list_to_list, list_ndims}; use datafusion_common::{internal_datafusion_err, internal_err, plan_err, Result}; -use super::binary::{ - comparison_binary_numeric_coercion, comparison_coercion, -}; +use super::binary::{comparison_binary_numeric_coercion, comparison_coercion}; /// Performs type coercion for function arguments. /// @@ -455,14 +453,15 @@ fn coerced_from<'a>( // Note that not all rules in `comparison_coercion` can be reused here. // For example, all numeric types can be coerced into Utf8 for comparison, // but not for function arguments. - _ => comparison_binary_numeric_coercion(type_into, type_from) - .and_then(|coerced_type| { + _ => comparison_binary_numeric_coercion(type_into, type_from).and_then( + |coerced_type| { if *type_into == coerced_type { Some(coerced_type) } else { None } - }), + }, + ), } }