Remove useless 'mut'
authorGreg Burri <greg.burri@gmail.com>
Tue, 19 Sep 2023 08:47:55 +0000 (10:47 +0200)
committerGreg Burri <greg.burri@gmail.com>
Tue, 19 Sep 2023 08:47:55 +0000 (10:47 +0200)
src/main_loop.rs

index 5c41bb9..6e7dd74 100644 (file)
@@ -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;