You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by ag...@apache.org on 2025/09/19 00:33:00 UTC
(datafusion-comet) branch main updated: fix:clippy errros rust 1.9.0 update (#2419)
This is an automated email from the ASF dual-hosted git repository.
agrove pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-comet.git
The following commit(s) were added to refs/heads/main by this push:
new 07898edca fix:clippy errros rust 1.9.0 update (#2419)
07898edca is described below
commit 07898edca1c9a37dd4ac729924e227ebe2126ee4
Author: B Vadlamani <11...@users.noreply.github.com>
AuthorDate: Thu Sep 18 17:32:57 2025 -0700
fix:clippy errros rust 1.9.0 update (#2419)
---
native/core/src/common/bit.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/native/core/src/common/bit.rs b/native/core/src/common/bit.rs
index 6bfc2c89c..15055e9d6 100644
--- a/native/core/src/common/bit.rs
+++ b/native/core/src/common/bit.rs
@@ -657,7 +657,7 @@ impl BitReader {
debug_assert!(self.bit_offset == 0 || i == num_bits_to_read);
// Check if there's opportunity to directly copy bytes using `memcpy`.
- if (offset + i) % 8 == 0 && i < num_bits_to_read {
+ if (offset + i).is_multiple_of(8) && i < num_bits_to_read {
let num_bytes = (num_bits_to_read - i) / 8;
let dst_byte_offset = (offset + i) / 8;
if num_bytes > 0 {
@@ -671,7 +671,7 @@ impl BitReader {
}
}
- debug_assert!((offset + i) % 8 != 0 || num_bits_to_read - i < 8);
+ debug_assert!(!(offset + i).is_multiple_of(8) || num_bits_to_read - i < 8);
// Now copy the remaining bits if there's any.
while i < num_bits_to_read {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org