Skip to content

Commit 0a320a2

Browse files
committed
wip
Signed-off-by: Joe Isaacs <[email protected]>
1 parent d5006a5 commit 0a320a2

File tree

32 files changed

+152
-38
lines changed

32 files changed

+152
-38
lines changed

encodings/alp/src/alp/compress.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ pub fn decompress(array: ALPArray) -> PrimitiveArray {
161161
/// # Returns
162162
///
163163
/// A `PrimitiveArray` containing the decompressed values with all patches applied.
164-
#[expect(clippy::cognitive_complexity, reason = "complexity is from nested match_each_* macros")]
164+
#[expect(
165+
clippy::cognitive_complexity,
166+
reason = "complexity is from nested match_each_* macros"
167+
)]
165168
pub fn decompress_chunked(
166169
array: ALPArray,
167170
patches: &Patches,

encodings/alp/src/alp/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ pub trait ALPFloat: private::Sealed + Float + Display + NativePType {
154154
encoded_bytes + patch_bytes
155155
}
156156

157-
#[expect(clippy::type_complexity, reason = "tuple return type is appropriate for multiple encoding outputs")]
157+
#[expect(
158+
clippy::type_complexity,
159+
reason = "tuple return type is appropriate for multiple encoding outputs"
160+
)]
158161
fn encode(
159162
values: &[Self],
160163
exponents: Option<Exponents>,

encodings/fastlanes/src/rle/array/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ impl RLEArray {
181181
/// Offsets in `values_idx_offsets` are absolute and need to be shifted
182182
/// by the offset of the first chunk, respective the current slice, in
183183
/// order to make them relative.
184-
#[expect(clippy::expect_used, reason = "expect is safe here as scalar_at returns a valid primitive")]
184+
#[expect(
185+
clippy::expect_used,
186+
reason = "expect is safe here as scalar_at returns a valid primitive"
187+
)]
185188
pub(crate) fn values_idx_offset(&self, chunk_idx: usize) -> usize {
186189
self.values_idx_offsets
187190
.scalar_at(chunk_idx)

encodings/fastlanes/src/rle/array/rle_decompress.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ use crate::FL_CHUNK_SIZE;
1919
use crate::RLEArray;
2020

2121
/// Decompresses an RLE array back into a primitive array.
22-
#[expect(clippy::cognitive_complexity, reason = "complexity is from nested match_each_* macros")]
22+
#[expect(
23+
clippy::cognitive_complexity,
24+
reason = "complexity is from nested match_each_* macros"
25+
)]
2326
pub fn rle_decompress(array: &RLEArray) -> PrimitiveArray {
2427
match_each_native_ptype!(array.values().dtype().as_ptype(), |V| {
2528
match_each_unsigned_integer_ptype!(array.values_idx_offsets().dtype().as_ptype(), |O| {

encodings/fsst/src/canonical.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ impl CanonicalVTable<FSSTVTable> for FSSTVTable {
5050
}
5151
}
5252

53-
#[expect(clippy::cast_possible_truncation, reason = "truncation is intentional for buffer index")]
53+
#[expect(
54+
clippy::cast_possible_truncation,
55+
reason = "truncation is intentional for buffer index"
56+
)]
5457
fn fsst_decode_views(fsst_array: &FSSTArray, buf_index: u32) -> (ByteBuffer, Buffer<BinaryView>) {
5558
// FSSTArray has two child arrays:
5659
// 1. A VarBinArray, which holds the string heap of the compressed codes.

encodings/sparse/src/canonical.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ impl CanonicalVTable<SparseVTable> for SparseVTable {
115115
}
116116
}
117117

118-
#[expect(clippy::cognitive_complexity, reason = "complexity is from nested match_smallest_offset_type macro")]
118+
#[expect(
119+
clippy::cognitive_complexity,
120+
reason = "complexity is from nested match_smallest_offset_type macro"
121+
)]
119122
fn canonicalize_sparse_lists(
120123
array: &SparseArray,
121124
values_dtype: Arc<DType>,

vortex-array/src/arrays/primitive/array/patch.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ impl PrimitiveArray {
7171
/// * `base_offset` - Base offset from the first chunk
7272
/// * `offset_within_chunk` - Offset within chunk for sliced patches
7373
#[inline]
74-
#[expect(clippy::too_many_arguments, reason = "all arguments are needed for the patching operation")]
74+
#[expect(
75+
clippy::too_many_arguments,
76+
reason = "all arguments are needed for the patching operation"
77+
)]
7578
pub fn patch_chunk<T, I, C>(
7679
decoded_values: &mut [T],
7780
patches_indices: &[I],

vortex-array/src/arrays/varbin/array.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,10 @@ impl VarBinArray {
243243
builder.finish(dtype)
244244
}
245245

246-
#[expect(clippy::same_name_method, reason = "intentionally named from_iter like Iterator::from_iter")]
246+
#[expect(
247+
clippy::same_name_method,
248+
reason = "intentionally named from_iter like Iterator::from_iter"
249+
)]
247250
pub fn from_iter<T: AsRef<[u8]>, I: IntoIterator<Item = Option<T>>>(
248251
iter: I,
249252
dtype: DType,

vortex-array/src/arrays/varbinview/array.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,10 @@ impl VarBinViewArray {
322322
}
323323

324324
/// Accumulate an iterable set of values into our type here.
325-
#[expect(clippy::same_name_method, reason = "intentionally named from_iter like Iterator::from_iter")]
325+
#[expect(
326+
clippy::same_name_method,
327+
reason = "intentionally named from_iter like Iterator::from_iter"
328+
)]
326329
pub fn from_iter<T: AsRef<[u8]>, I: IntoIterator<Item = Option<T>>>(
327330
iter: I,
328331
dtype: DType,

vortex-array/src/compute/is_sorted.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ pub trait IsSortedKernel: VTable {
213213
fn is_strict_sorted(&self, array: &Self::Array) -> VortexResult<Option<bool>>;
214214
}
215215

216-
#[expect(clippy::wrong_self_convention, reason = "is_* naming follows Iterator::is_sorted convention")]
216+
#[expect(
217+
clippy::wrong_self_convention,
218+
reason = "is_* naming follows Iterator::is_sorted convention"
219+
)]
217220
/// Helper methods to check sortedness with strictness
218221
pub trait IsSortedIteratorExt: Iterator
219222
where

0 commit comments

Comments
 (0)