Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Jan 20, 2025
1 parent 01e79f7 commit 1c93eca
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 137 deletions.
13 changes: 7 additions & 6 deletions jh/src/compressor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,6 @@ pub fn f8_impl<M: Machine>(mach: M, state: &mut [vec128_storage; 8], data: *cons
];
}

dispatch!(mach, M, {
fn f8(state: &mut [vec128_storage; 8], data: *const u8) {
f8_impl(mach, state, data);
}
});

pub(crate) union Compressor {
cv: [vec128_storage; 8],
bytes: [u8; 128],
Expand All @@ -167,7 +161,14 @@ impl Compressor {
}

#[inline]
#[allow(unexpected_cfgs)] // TODO: remove after dependency on ppv-lite86 is eliminated
pub(crate) fn update(&mut self, data: &Array<u8, U64>) {
simd::dispatch!(mach, M, {
fn f8(state: &mut [vec128_storage; 8], data: *const u8) {
f8_impl(mach, state, data);
}
});

f8(unsafe { &mut self.cv }, data.as_ptr());
}

Expand Down
Loading

0 comments on commit 1c93eca

Please sign in to comment.