Skip to content

Commit 1146b9a

Browse files
authored
Fix lints (#639)
1 parent 01e79f7 commit 1146b9a

File tree

4 files changed

+153
-150
lines changed

4 files changed

+153
-150
lines changed

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: RustCrypto/actions/cargo-cache@master
1818
- uses: dtolnay/rust-toolchain@master
1919
with:
20-
toolchain: 1.82.0
20+
toolchain: 1.84.0
2121
components: clippy
2222
- run: cargo clippy --all -- -D warnings
2323

jh/src/compressor.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,6 @@ pub fn f8_impl<M: Machine>(mach: M, state: &mut [vec128_storage; 8], data: *cons
149149
];
150150
}
151151

152-
dispatch!(mach, M, {
153-
fn f8(state: &mut [vec128_storage; 8], data: *const u8) {
154-
f8_impl(mach, state, data);
155-
}
156-
});
157-
158152
pub(crate) union Compressor {
159153
cv: [vec128_storage; 8],
160154
bytes: [u8; 128],
@@ -167,7 +161,14 @@ impl Compressor {
167161
}
168162

169163
#[inline]
164+
#[allow(unexpected_cfgs)] // TODO: remove after dependency on ppv-lite86 is eliminated
170165
pub(crate) fn update(&mut self, data: &Array<u8, U64>) {
166+
simd::dispatch!(mach, M, {
167+
fn f8(state: &mut [vec128_storage; 8], data: *const u8) {
168+
f8_impl(mach, state, data);
169+
}
170+
});
171+
171172
f8(unsafe { &mut self.cv }, data.as_ptr());
172173
}
173174

0 commit comments

Comments
 (0)