No need to check min_length

This commit is contained in:
Oli Scherer 2024-01-16 16:37:43 +00:00
parent 271821fbc3
commit 1c9e621308

View File

@ -112,7 +112,7 @@ fn project(
fields.get(FieldIdx::from_u32(idx.try_into().ok()?)).unwrap_or(&Value::Uninit) fields.get(FieldIdx::from_u32(idx.try_into().ok()?)).unwrap_or(&Value::Uninit)
} }
( (
PlaceElem::ConstantIndex { offset, min_length: 1, from_end: false }, PlaceElem::ConstantIndex { offset, min_length: _, from_end: false },
Value::Aggregate { fields, .. }, Value::Aggregate { fields, .. },
) => fields ) => fields
.get(FieldIdx::from_u32(offset.try_into().ok()?)) .get(FieldIdx::from_u32(offset.try_into().ok()?))