Skip to content

Commit 6ce0a86

Browse files
michielp1807folkertdev
authored andcommitted
Fix clippy warning
1 parent 7fba756 commit 6ce0a86

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fuzz/fuzz_targets/dictionary_round_trip.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ fuzz_target!(|data: (ArbitrarySamples, ArbitraryRoundTrip)| {
8888

8989
// Half of the time fuzz with a 1 byte smaller output size.
9090
// This will still succeed because we force the checksum to be disabled, giving us 4 bytes of overhead.
91-
let compressed_capacity =
92-
unsafe { ZSTD_compressBound(src.len()) } - data.c_buf_size_minus_one as usize;
91+
let compressed_capacity = ZSTD_compressBound(src.len()) - data.c_buf_size_minus_one as usize;
9392
let mut compressed = vec![0; compressed_capacity];
9493

9594
let cctx = unsafe { ZSTD_createCCtx() };

0 commit comments

Comments
 (0)