Skip to content

Commit 4698492

Browse files
bjorn3folkertdev
authored andcommitted
Fix a clippy warning on the main branch
1 parent 26eef4c commit 4698492

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/decompress/huf_decompress.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,11 @@ unsafe extern "C" fn HUF_decompress4X1_usingDTable_internal_fast_c_loop(
623623
let mut ip = args.ip;
624624
let mut op = args.op;
625625

626-
debug_assert!(cfg!(target_endian = "little"));
627-
debug_assert!(cfg!(target_pointer_width = "64"));
626+
#[allow(clippy::assertions_on_constants)]
627+
{
628+
debug_assert!(cfg!(target_endian = "little"));
629+
debug_assert!(cfg!(target_pointer_width = "64"));
630+
}
628631

629632
'out: loop {
630633
/* Assert loop preconditions */

0 commit comments

Comments
 (0)