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

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


The following commit(s) were added to refs/heads/master by this push:
     new b02753c7b [CI] Fix the newly added linting errors to make clippy happy 
(#3598)
b02753c7b is described below

commit b02753c7b4aa4f74d048b4df62b01ec30d598f94
Author: Batuhan Taskaya <[email protected]>
AuthorDate: Fri Sep 23 12:08:38 2022 +0300

    [CI] Fix the newly added linting errors to make clippy happy (#3598)
---
 datafusion/core/src/physical_plan/file_format/delimited_stream.rs | 2 +-
 datafusion/core/src/physical_plan/hash_join.rs                    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/datafusion/core/src/physical_plan/file_format/delimited_stream.rs 
b/datafusion/core/src/physical_plan/file_format/delimited_stream.rs
index 1b6e30a94..68878da08 100644
--- a/datafusion/core/src/physical_plan/file_format/delimited_stream.rs
+++ b/datafusion/core/src/physical_plan/file_format/delimited_stream.rs
@@ -68,7 +68,7 @@ impl LineDelimiter {
             } else if *is_quote {
                 None
             } else {
-                (*v == NEWLINE).then(|| idx + 1)
+                (*v == NEWLINE).then_some(idx + 1)
             }
         });
 
diff --git a/datafusion/core/src/physical_plan/hash_join.rs 
b/datafusion/core/src/physical_plan/hash_join.rs
index 8cb7445a2..a22bcbc13 100644
--- a/datafusion/core/src/physical_plan/hash_join.rs
+++ b/datafusion/core/src/physical_plan/hash_join.rs
@@ -1240,12 +1240,12 @@ fn produce_from_matched(
     let indices = if unmatched {
         UInt64Array::from_iter_values(
             (0..visited_left_side.len())
-                .filter_map(|v| (!visited_left_side.get_bit(v)).then(|| v as 
u64)),
+                .filter_map(|v| (!visited_left_side.get_bit(v)).then_some(v as 
u64)),
         )
     } else {
         UInt64Array::from_iter_values(
             (0..visited_left_side.len())
-                .filter_map(|v| (visited_left_side.get_bit(v)).then(|| v as 
u64)),
+                .filter_map(|v| (visited_left_side.get_bit(v)).then_some(v as 
u64)),
         )
     };
 

Reply via email to