diff --git a/src/config_management.rs b/src/config_management.rs index bc81d18..65b7649 100755 --- a/src/config_management.rs +++ b/src/config_management.rs @@ -81,7 +81,7 @@ pub fn get(selection: &str, key: &str) -> String { .join("blue-recorder") .join("config.ini"); String::from( - Ini::load_from_file(&config_path) + Ini::load_from_file(config_path) .unwrap() .with_section(Some(selection)) .get(key) diff --git a/src/main.rs b/src/main.rs index 96ce07d..7d737a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -144,12 +144,12 @@ pub fn build_ui(application: &Application) { // Get audio sources let sources_descriptions: Vec = { let list_sources_child = Command::new("pactl") - .args(&["list", "sources"]) + .args(["list", "sources"]) .stdout(Stdio::piped()) .spawn(); let sources_descriptions = String::from_utf8(if let Ok(..) = list_sources_child { Command::new("grep") - .args(&["-e", "device.description"]) + .args(["-e", "device.description"]) .stdin(list_sources_child.unwrap().stdout.take().unwrap()) .output() .unwrap()