Fixed warning

This commit is contained in:
Guillume DIDIER 2021-10-20 15:04:50 +02:00
parent e9bdd96f7e
commit d64044b43d

View File

@ -13,7 +13,6 @@ use nix::Error;
use prefetcher_reverse::{Prober, CACHE_LINE_LEN, PAGE_CACHELINE_LEN};
use rand::seq::SliceRandom;
use std::iter::Cycle;
use std::ops::Range;
pub const NUM_ITERATION: usize = 1 << 10;
pub const NUM_PAGES: usize = 256;
@ -48,7 +47,7 @@ fn execute_pattern(
let mut res = vec![false; PAGE_CACHELINE_LEN];
for (i, status) in measures.unwrap().into_iter().enumerate() {
res[i] = (status.1 == Hit)
res[i] = status.1 == Hit;
}
res
}