Skip to content

Commit e1fcfa7

Browse files
cruzzilfolkertdev
authored andcommitted
Clippy: unnecessary_semicolons to remove semicolons that aren't required, such as at the end of if statements
1 parent 2c7c352 commit e1fcfa7

File tree

15 files changed

+27
-27
lines changed

15 files changed

+27
-27
lines changed

lib/compress/fse_compress.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ unsafe fn FSE_compress_usingCTable_generic(
651651
BIT_flushBitsFast(&mut bitC);
652652
} else {
653653
BIT_flushBits(&mut bitC);
654-
};
654+
}
655655
} else {
656656
ip = ip.sub(1);
657657
FSE_initCState2(&mut CState2, ct, *ip as u32);
@@ -671,7 +671,7 @@ unsafe fn FSE_compress_usingCTable_generic(
671671
BIT_flushBitsFast(&mut bitC);
672672
} else {
673673
BIT_flushBits(&mut bitC);
674-
};
674+
}
675675
}
676676
while ip > istart {
677677
ip = ip.sub(1);
@@ -683,7 +683,7 @@ unsafe fn FSE_compress_usingCTable_generic(
683683
BIT_flushBitsFast(&mut bitC);
684684
} else {
685685
BIT_flushBits(&mut bitC);
686-
};
686+
}
687687
}
688688
ip = ip.sub(1);
689689
FSE_encodeSymbol(&mut bitC, &mut CState1, *ip as core::ffi::c_uint);
@@ -699,7 +699,7 @@ unsafe fn FSE_compress_usingCTable_generic(
699699
BIT_flushBitsFast(&mut bitC);
700700
} else {
701701
BIT_flushBits(&mut bitC);
702-
};
702+
}
703703
}
704704
FSE_flushCState(&mut bitC, &CState2);
705705
FSE_flushCState(&mut bitC, &CState1);

lib/compress/zstd_compress.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ unsafe fn ZSTD_checkDictValidity(
794794
} else {
795795
// FIXME: add log
796796
// *loadedDictEndPtr != 0;
797-
};
797+
}
798798
}
799799
#[inline]
800800
unsafe fn ZSTD_window_init(window: *mut ZSTD_window_t) {
@@ -1292,7 +1292,7 @@ unsafe fn ZSTD_cwksp_bump_oversized_duration(ws: *mut ZSTD_cwksp, additionalNeed
12921292
(*ws).workspaceOversizedDuration += 1;
12931293
} else {
12941294
(*ws).workspaceOversizedDuration = 0;
1295-
};
1295+
}
12961296
}
12971297
pub const ZSTDMT_JOBSIZE_MIN: core::ffi::c_int = 512 * ((1) << 10);
12981298

@@ -4335,7 +4335,7 @@ unsafe fn ZSTD_copyCDictTableIntoCCtx(
43354335
src as *const core::ffi::c_void,
43364336
tableSize.wrapping_mul(::core::mem::size_of::<u32>()),
43374337
);
4338-
};
4338+
}
43394339
}
43404340
unsafe fn ZSTD_resetCCtx_byCopyingCDict(
43414341
cctx: *mut ZSTD_CCtx,
@@ -11227,7 +11227,7 @@ unsafe fn ZSTD_dedicatedDictSearch_revertCParams(cParams: *mut ZSTD_compressionP
1122711227
if (*cParams).hashLog < ZSTD_HASHLOG_MIN as core::ffi::c_uint {
1122811228
(*cParams).hashLog = ZSTD_HASHLOG_MIN as core::ffi::c_uint;
1122911229
}
11230-
};
11230+
}
1123111231
}
1123211232
unsafe fn ZSTD_getCParamRowSize(
1123311233
srcSizeHint: u64,
@@ -12401,5 +12401,5 @@ pub unsafe extern "C" fn ZSTD_CCtxParams_registerSequenceProducer(
1240112401
} else {
1240212402
(*params).extSeqProdFunc = None;
1240312403
(*params).extSeqProdState = core::ptr::null_mut();
12404-
};
12404+
}
1240512405
}

lib/compress/zstd_compress_internal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub(crate) unsafe fn ZSTD_updateRep(rep: *mut u32, offBase: u32, ll0: u32) {
117117
*rep.add(1) = *rep;
118118
*rep = currentOffset;
119119
}
120-
};
120+
}
121121
}
122122

123123
pub(crate) unsafe fn ZSTD_safecopyLiterals(

lib/compress/zstd_double_fast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub unsafe fn ZSTD_fillDoubleHashTable(
174174
ZSTD_fillDoubleHashTableForCDict(ms, end, dtlm);
175175
} else {
176176
ZSTD_fillDoubleHashTableForCCtx(ms, end, dtlm);
177-
};
177+
}
178178
}
179179
#[inline(always)]
180180
unsafe fn ZSTD_compressBlock_doubleFast_noDict_generic(

lib/compress/zstd_fast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub unsafe fn ZSTD_fillHashTable(
162162
ZSTD_fillHashTableForCDict(ms, end, dtlm);
163163
} else {
164164
ZSTD_fillHashTableForCCtx(ms, end, dtlm);
165-
};
165+
}
166166
}
167167

168168
unsafe fn ZSTD_match4Found_cmov(

lib/compress/zstd_ldm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ unsafe fn ZSTD_ldm_gear_init(state: *mut ldmRollingHashState_t, params: *const l
500500
(1u64 << hashRateLog).wrapping_sub(1) << maxBitsInMask.wrapping_sub(hashRateLog);
501501
} else {
502502
(*state).stopMask = (1u64 << hashRateLog).wrapping_sub(1);
503-
};
503+
}
504504
}
505505
unsafe fn ZSTD_ldm_gear_reset(
506506
state: *mut ldmRollingHashState_t,

lib/compress/zstd_opt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ unsafe fn ZSTD_opt_getNextMatchAndUpdateSeqStore(
16641664
&mut (*optLdm).seqStore,
16651665
literalsBytesRemaining.wrapping_add(matchBytesRemaining) as size_t,
16661666
);
1667-
};
1667+
}
16681668
}
16691669
unsafe fn ZSTD_optLdm_maybeAddMatch(
16701670
matches: *mut ZSTD_match_t,

lib/decompress/huf_decompress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ impl<'a> Writer<'a> {
21772177

21782178
if (range.end as usize - range.start as usize) < 6 {
21792179
panic!("length must be at least six when splitting into 4 streams");
2180-
};
2180+
}
21812181

21822182
unsafe {
21832183
let w1 = Self::from_raw_parts(range.start, segment_size);

lib/decompress/zstd_ddict.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pub fn ZSTD_copyDDictParameters(dctx: &mut MaybeUninit<ZSTD_DCtx>, ddict: &ZSTD_
104104
} else {
105105
(*dctx).litEntropy = false;
106106
(*dctx).fseEntropy = false;
107-
};
107+
}
108108
}
109109
}
110110

lib/decompress/zstd_decompress.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ fn find_decompressed_size(mut src: &[u8]) -> u64 {
13611361
match totalDstSize.checked_add(fcs) {
13621362
None => return ZSTD_CONTENTSIZE_ERROR,
13631363
Some(size) => totalDstSize = size,
1364-
};
1364+
}
13651365

13661366
// skip to next frame
13671367
let Ok(frameSrcSize) = ZSTD_findFrameCompressedSize_advanced(src, Format::ZSTD_f_zstd1)
@@ -3366,7 +3366,7 @@ fn ZSTD_DCtx_updateOversizedDuration(
33663366
zds.oversizedDuration = zds.oversizedDuration.wrapping_add(1);
33673367
} else {
33683368
zds.oversizedDuration = 0;
3369-
};
3369+
}
33703370
}
33713371

33723372
fn ZSTD_DCtx_isOversizedTooLong(zds: &ZSTD_DStream) -> bool {
@@ -3661,7 +3661,7 @@ pub unsafe extern "C" fn ZSTD_decompressStream(
36613661
zds.format,
36623662
) {
36633663
return err.to_error_code();
3664-
};
3664+
}
36653665
// remaining header bytes + next block header
36663666
return Ord::max(ZSTD_FRAMEHEADERSIZE_MIN(zds.format), hSize)
36673667
.wrapping_sub(zds.lhSize)

0 commit comments

Comments
 (0)