Skip to content

Commit 86a9cc8

Browse files
chore: fix clippy collapsible_match warning
1 parent 72202c0 commit 86a9cc8

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎datafusion/expr-common/src/casts.rs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,8 @@ fn is_lossy_temporal_cast(from_type: &DataType, to_type: &DataType) -> bool {
134134
(from_type, to_type)
135135
{
136136
match (from_tz, to_tz) {
137-
(Some(tz), None) | (None, Some(tz)) => {
138-
if !is_zero_offset_timezone(tz.as_ref()) {
139-
return true;
140-
}
137+
(Some(tz), None) | (None, Some(tz)) if !is_zero_offset_timezone(tz.as_ref()) => {
138+
return true;
141139
}
142140
_ => {}
143141
}

0 commit comments

Comments
 (0)