This is an automated email from the ASF dual-hosted git repository.
Jefffrey pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/main by this push:
new 7616e10f12 chore: Make clippy::question_mark happy (#10231)
7616e10f12 is described below
commit 7616e10f12894232eacb807993e55427a067d061
Author: Thomas Tanon <[email protected]>
AuthorDate: Mon Jun 29 03:21:29 2026 +0200
chore: Make clippy::question_mark happy (#10231)
Fixes a warning with Rust nightly without changing the code semantic
---
arrow-buffer/src/util/bit_iterator.rs | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/arrow-buffer/src/util/bit_iterator.rs
b/arrow-buffer/src/util/bit_iterator.rs
index a6504b0ca8..335fe40f8f 100644
--- a/arrow-buffer/src/util/bit_iterator.rs
+++ b/arrow-buffer/src/util/bit_iterator.rs
@@ -365,14 +365,10 @@ impl<'a> Iterator for BitIndexU32Iterator<'a> {
return Some((self.chunk_offset + tz as i64) as u32);
}
// Advance to next 64-bit chunk
- match self.iter.next() {
- Some(next_chunk) => {
- // Move offset forward by 64 bits
- self.chunk_offset += 64;
- self.curr = next_chunk;
- }
- None => return None,
- }
+ let next_chunk = self.iter.next()?;
+ // Move offset forward by 64 bits
+ self.chunk_offset += 64;
+ self.curr = next_chunk;
}
}
}