Przeglądaj źródła

lost `iv -` due to previous

ComlOnline 7 lat temu
rodzic
commit
618eceb740
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/main.rs

+ 1 - 1
src/main.rs

@@ -135,7 +135,7 @@ fn setup(args: &[String]) -> Setup {
         
     let initial_volume;
         if matches.opt_present("initial-volume") && matches.opt_str("initial-volume").unwrap().parse::<i32>().is_ok() {
-            let matches.opt_str("initial-volume").unwrap().parse::<i32>().unwrap();
+            let iv = matches.opt_str("initial-volume").unwrap().parse::<i32>().unwrap();
             if 0 <= iv && iv <= 100 {
                 initial_volume = iv * 0xFFFF as i32 / 100 ;
             } else {