Skip to content

Commit

Permalink
[CI] Fix the newly added linting errors to make clippy happy (#3598)
Browse files Browse the repository at this point in the history
  • Loading branch information
isidentical authored Sep 23, 2022
1 parent abcb39d commit b02753c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl LineDelimiter {
} else if *is_quote {
None
} else {
(*v == NEWLINE).then(|| idx + 1)
(*v == NEWLINE).then_some(idx + 1)
}
});

Expand Down
4 changes: 2 additions & 2 deletions datafusion/core/src/physical_plan/hash_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
)
};

Expand Down

0 comments on commit b02753c

Please sign in to comment.