Skip to content

Commit 2609639

Browse files
committed
clippy
1 parent 1feaa7e commit 2609639

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/dictBuilder/zdict.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ unsafe fn ZDICT_analyzePos(
349349
let mut savings = [0u32; LLIMIT];
350350
savings[5] = 0;
351351

352-
for u_1 in MINMATCHLENGTH as usize..=maxLength {
353-
savings[u_1 as usize] = (savings[u_1.wrapping_sub(1) as usize])
354-
.wrapping_add((lengthList[u_1 as usize]).wrapping_mul(u_1.wrapping_sub(3) as u32));
352+
for u_1 in MINMATCHLENGTH..=maxLength {
353+
savings[u_1] = (savings[u_1.wrapping_sub(1)])
354+
.wrapping_add((lengthList[u_1]).wrapping_mul(u_1.wrapping_sub(3) as u32));
355355
}
356356

357357
if notificationLevel >= 4 {

programs/fileio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ unsafe extern "C" fn INThandler(sig: core::ffi::c_int) {
354354
unsafe fn addHandler(dstFileName: *const core::ffi::c_char) {
355355
if UTIL_isRegularFile(dstFileName) != 0 {
356356
g_artefact = dstFileName;
357-
signal(SIGINT, INThandler as sighandler_t);
357+
signal(SIGINT, INThandler as *const () as sighandler_t);
358358
} else {
359359
g_artefact = core::ptr::null();
360360
};

0 commit comments

Comments
 (0)