test: dry clippy allow

This commit is contained in:
mehbark 2025-10-04 15:33:41 -04:00
parent 3a07eae54f
commit 7f0c1ada52
Signed by: mbk
GPG key ID: E333EC1335FFCCDB

View file

@ -1,20 +1,18 @@
use quickcheck_macros::quickcheck;
#![allow(clippy::needless_pass_by_value)]
use crate::{CompressionScheme, Freq, Huffman, Rle};
use quickcheck_macros::quickcheck;
#[allow(clippy::needless_pass_by_value)]
#[quickcheck]
fn roundtrip_freq(src: Vec<u8>) -> bool {
Freq::idempotent_on(&src)
}
#[allow(clippy::needless_pass_by_value)]
#[quickcheck]
fn roundtrip_rle(src: Vec<u8>) -> bool {
Rle::idempotent_on(&src)
}
#[allow(clippy::needless_pass_by_value)]
#[quickcheck]
fn roundtrip_huffman(src: Vec<u8>) -> bool {
Huffman::idempotent_on(&src)