You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by co...@apache.org on 2024/02/19 19:44:28 UTC

(arrow-datafusion) branch main updated: Minor: fix warning of 'Unnecessary braces in use statement' (#9271)

This is an automated email from the ASF dual-hosted git repository.

comphead pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 5291b03192 Minor: fix warning of 'Unnecessary braces in use statement' (#9271)
5291b03192 is described below

commit 5291b03192d711f270c290eb48a2becdf637536d
Author: Jonah Gao <jo...@msn.com>
AuthorDate: Tue Feb 20 03:44:22 2024 +0800

    Minor: fix warning of 'Unnecessary braces in use statement' (#9271)
---
 datafusion/functions/src/core/nullif.rs | 8 +++-----
 datafusion/functions/src/math/nans.rs   | 4 +---
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/datafusion/functions/src/core/nullif.rs b/datafusion/functions/src/core/nullif.rs
index 1007f349f7..f83bd987c9 100644
--- a/datafusion/functions/src/core/nullif.rs
+++ b/datafusion/functions/src/core/nullif.rs
@@ -17,18 +17,16 @@
 
 //! Encoding expressions
 
-use arrow::{
-    datatypes::DataType,
-};
+use arrow::datatypes::DataType;
 use datafusion_common::{internal_err, Result, DataFusionError};
-use datafusion_expr::{ColumnarValue};
+use datafusion_expr::ColumnarValue;
 
 use datafusion_expr::{ScalarUDFImpl, Signature, Volatility};
 use std::any::Any;
 use arrow::array::Array;
 use arrow::compute::kernels::cmp::eq;
 use arrow::compute::kernels::nullif::nullif;
-use datafusion_common::{ ScalarValue};
+use datafusion_common::ScalarValue;
 
 #[derive(Debug)]
 pub(super) struct NullIfFunc {
diff --git a/datafusion/functions/src/math/nans.rs b/datafusion/functions/src/math/nans.rs
index 228039e5f6..20754c18aa 100644
--- a/datafusion/functions/src/math/nans.rs
+++ b/datafusion/functions/src/math/nans.rs
@@ -17,9 +17,7 @@
 
 //! Encoding expressions
 
-use arrow::{
-    datatypes::DataType,
-};
+use arrow::datatypes::DataType;
 use datafusion_common::{internal_err, Result, DataFusionError};
 use datafusion_expr::ColumnarValue;