From 618eceb740113d25d58977f941e4a8ef2ce81481 Mon Sep 17 00:00:00 2001 From: ComlOnline Date: Tue, 30 Jan 2018 21:46:57 +0000 Subject: [PATCH] lost `iv -` due to previous --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 45c5ec87..499bb613 100644 --- a/src/main.rs +++ b/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::().is_ok() { - let matches.opt_str("initial-volume").unwrap().parse::().unwrap(); + let iv = matches.opt_str("initial-volume").unwrap().parse::().unwrap(); if 0 <= iv && iv <= 100 { initial_volume = iv * 0xFFFF as i32 / 100 ; } else {