From d64044b43d4372e5985fc496f983d86bb0972087 Mon Sep 17 00:00:00 2001 From: Guillume DIDIER Date: Wed, 20 Oct 2021 15:04:50 +0200 Subject: [PATCH] Fixed warning --- prefetcher_reverse/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/prefetcher_reverse/src/main.rs b/prefetcher_reverse/src/main.rs index ad06294..b6f4d42 100644 --- a/prefetcher_reverse/src/main.rs +++ b/prefetcher_reverse/src/main.rs @@ -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 }