Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions arrow-buffer/src/bigint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ enum DivRemError {
}

/// A signed 256-bit integer
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Default, Eq, PartialEq, Hash)]
#[repr(C)]
pub struct i256 {
Expand Down Expand Up @@ -1752,7 +1751,7 @@ mod tests {
}
}

#[allow(clippy::op_ref)]
#[expect(clippy::op_ref)]
fn test_reference_op(il: i256, ir: i256) {
let r1 = il + ir;
let r2 = &il + ir;
Expand Down
2 changes: 1 addition & 1 deletion arrow-buffer/src/buffer/immutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ mod tests {
}

#[test]
#[allow(clippy::float_cmp)]
#[expect(clippy::float_cmp)]
fn test_as_typed_data() {
check_as_typed_data!(&[1i8, 3i8, 6i8], i8);
check_as_typed_data!(&[1u8, 3u8, 6u8], u8);
Expand Down
1 change: 1 addition & 0 deletions arrow-buffer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
html_favicon_url = "https://arrow.apache.org/img/arrow-logo_chevrons_black-txt_transparent-bg.svg"
)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(clippy::allow_attributes)]
#![warn(missing_docs)]

pub mod alloc;
Expand Down
3 changes: 1 addition & 2 deletions arrow-buffer/src/util/bit_chunk_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ impl Iterator for BitChunkIterator<'_> {
}

// cast to *const u64 should be fine since we are using read_unaligned below
#[allow(clippy::cast_ptr_alignment)]
#[expect(clippy::cast_ptr_alignment)]
let raw_data = self.buffer.as_ptr() as *const u64;

// bit-packed buffers are stored starting with the least-significant byte first
Expand Down Expand Up @@ -556,7 +556,6 @@ mod tests {
}

#[test]
#[allow(clippy::assertions_on_constants)]
fn test_unaligned_bit_chunk_iterator() {
let buffer = Buffer::from(&[0xFF; 5]);
let unaligned = UnalignedBitChunk::new(buffer.as_slice(), 0, 40);
Expand Down
5 changes: 2 additions & 3 deletions arrow-buffer/src/util/bit_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,9 @@ mod tests {
let mut actual = actual.clone();
let mut expected = expected.clone();
for _ in 0..expected.len() {
#[allow(clippy::iter_nth_zero)]
#[expect(clippy::iter_nth_zero)]
let actual_val = actual.nth(0);
#[allow(clippy::iter_nth_zero)]
#[expect(clippy::iter_nth_zero)]
let expected_val = expected.nth(0);
assert_eq!(actual_val, expected_val, "Failed on nth(0)");
}
Expand Down Expand Up @@ -971,7 +971,6 @@ mod tests {
let mut actual = actual.clone();
let mut expected = expected.clone();
for _ in 0..expected.len() {
#[allow(clippy::iter_nth_zero)]
let actual_val = actual.nth_back(0);
let expected_val = expected.nth_back(0);
assert_eq!(actual_val, expected_val, "Failed on nth_back(0)");
Expand Down