From bec02443ba73a7d138fb1a16684995ceb8bfc065 Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Tue, 19 Sep 2023 10:47:55 +0200 Subject: [PATCH] Remove useless 'mut' --- src/main_loop.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main_loop.rs b/src/main_loop.rs index 5c41bb9..6e7dd74 100644 --- a/src/main_loop.rs +++ b/src/main_loop.rs @@ -23,7 +23,7 @@ pub fn main_loop(completed: Arc) { let settings = settings::Settings::read(consts::FILE_CONF).expect("Cannot load settings"); println!("Settings: {settings:?}"); - let mut machine: &mut dyn machine::Machine = &mut machine::MachineJiji::new(); + let machine: &mut dyn machine::Machine = &mut machine::MachineJiji::new(); let mut kernel = [0f32; consts::KERNEL_SIZE_SAMPLES]; let mut current_pos = 0usize; @@ -35,6 +35,7 @@ pub fn main_loop(completed: Arc) { if completed.load(Ordering::Relaxed) { break; } + let time_beginning_loop = time::Instant::now(); let temp = (machine.get_cpu_tmp() + machine.get_gpu_tmp()) / 2f32; -- 2.45.2