test: dry clippy allow
This commit is contained in:
parent
3a07eae54f
commit
7f0c1ada52
1 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue