Skip to content

Commit

Permalink
Fix lints (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Jan 20, 2025
1 parent 01e79f7 commit 1146b9a
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.82.0
toolchain: 1.84.0
components: clippy
- run: cargo clippy --all -- -D warnings

Expand Down
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 1146b9a

Please sign in to comment.