Skip to content

Commit 1e50acc

Browse files
committed
trunc
Signed-off-by: Alexander Droste <[email protected]>
1 parent 1eea6ce commit 1e50acc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

encodings/pco/benches/pco.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub fn main() {
3737
)]
3838
pub fn pco_pipeline(bencher: Bencher, (size, selectivity): (usize, f64)) {
3939
let mut rng = StdRng::seed_from_u64(42);
40+
#[allow(clippy::cast_possible_truncation)]
4041
let values = (0..size)
4142
.map(|i| (i % 10000) as i32)
4243
.collect::<BufferMut<i32>>()
@@ -69,6 +70,7 @@ pub fn pco_pipeline(bencher: Bencher, (size, selectivity): (usize, f64)) {
6970
)]
7071
pub fn pco_canonical(bencher: Bencher, (size, selectivity): (usize, f64)) {
7172
let mut rng = StdRng::seed_from_u64(42);
73+
#[allow(clippy::cast_possible_truncation)]
7274
let values = (0..size)
7375
.map(|i| (i % 10000) as i32)
7476
.collect::<BufferMut<i32>>()

0 commit comments

Comments
 (0)