Apache DataFusion SQL Query Engine
[CI] Fix the newly added linting errors to make clippy happy (#3598)
Batuhan Taskayab02753c7b4aa
diff --git a/datafusion/core/src/physical_plan/file_format/delimited_stream.rs b/datafusion/core/src/physical_plan/file_format/delimited_stream.rsindex 1b6e30a946..68878da086 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.rsindex 8cb7445a24..a22bcbc13c 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)),)};