Skip to content

Commit 85793c3

Browse files
committed
clippy is strict
1 parent 744c829 commit 85793c3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

crates/iceberg/src/arrow/value.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -476,13 +476,12 @@ impl PartnerAccessor<ArrayRef> for ArrowArrayAccessor {
476476
.fields()
477477
.iter()
478478
.position(|arrow_field| {
479-
get_field_id(arrow_field).map_or(false, |id| id == field.id)
479+
get_field_id(arrow_field).is_ok_and(|id| id == field.id)
480480
|| self
481-
.arrow_schema
482-
.as_ref()
483-
.and_then(|schema| schema.field_with_name(&field.name).ok())
484-
.and_then(|field_from_schema| get_field_id(field_from_schema).ok())
485-
.map_or(false, |id| id == field.id)
481+
.arrow_schema
482+
.as_ref()
483+
.and_then(|schema| schema.field_with_name(&field.name).ok())
484+
.and_then(|field_from_schema| get_field_id(field_from_schema).ok()) == Some(field.id)
486485
})
487486
.ok_or_else(|| {
488487
Error::new(

0 commit comments

Comments
 (0)