diff --git a/rust/lance-file/src/reader.rs b/rust/lance-file/src/reader.rs index 933dad4f177..ff2fc6bd7fb 100644 --- a/rust/lance-file/src/reader.rs +++ b/rust/lance-file/src/reader.rs @@ -532,7 +532,7 @@ fn read_null_array( 0 } else { let idx_max = *indices.values().iter().max().unwrap() as u64; - if idx_max >= page_info.length.try_into().unwrap() { + if idx_max >= page_info.length as u64 { return Err(Error::io( format!( "NullArray Reader: request([{}]) out of range: [0..{}]",