From: Greg Burri <greg.burri@gmail.com>
Date: Tue, 19 Sep 2023 08:47:55 +0000 (+0200)
Subject: Remove useless 'mut'
X-Git-Url: https://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=bec02443ba73a7d138fb1a16684995ceb8bfc065;p=temp2RGB.git

Remove useless 'mut'
---

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<AtomicBool>) {
     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<AtomicBool>) {
         if completed.load(Ordering::Relaxed) {
             break;
         }
+
         let time_beginning_loop = time::Instant::now();
 
         let temp = (machine.get_cpu_tmp() + machine.get_gpu_tmp()) / 2f32;