From ca99fb7578bb09a10810e603b7e81f3f7dcc82f5 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Thu, 8 Aug 2024 01:48:41 -0700 Subject: [PATCH] refactor: remove redundant references --- src/config_management.rs | 2 +- src/ffmpeg_interface.rs | 2 +- src/main.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config_management.rs b/src/config_management.rs index 65b7649..97377c9 100755 --- a/src/config_management.rs +++ b/src/config_management.rs @@ -16,7 +16,7 @@ pub fn initialize() -> PathBuf { if !&config_path.exists() { let config_directories = &mut config_path.to_owned(); config_directories.pop(); - std::fs::create_dir_all(&config_directories).unwrap_or_default(); + std::fs::create_dir_all(config_directories).unwrap_or_default(); std::fs::File::create(&config_path).unwrap(); default(); } else { diff --git a/src/ffmpeg_interface.rs b/src/ffmpeg_interface.rs index 1cdd75c..54c89fb 100644 --- a/src/ffmpeg_interface.rs +++ b/src/ffmpeg_interface.rs @@ -184,7 +184,7 @@ impl Ffmpeg { ffmpeg_command.arg("-f"); ffmpeg_command.arg("pulse"); ffmpeg_command.arg("-i"); - ffmpeg_command.arg(&self.audio_id.active_id().unwrap()); + ffmpeg_command.arg(self.audio_id.active_id().unwrap()); ffmpeg_command.arg("-f"); ffmpeg_command.arg("ogg"); ffmpeg_command.arg(format!( diff --git a/src/main.rs b/src/main.rs index 7d737a6..a38aadd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -577,7 +577,7 @@ pub fn build_ui(application: &Application) { .unwrap(); } - let logo = Image::from_file(&about_icon_path.to_str().unwrap()); + let logo = Image::from_file(about_icon_path.to_str().unwrap()); about_dialog.set_transient_for(Some(&main_window)); about_dialog.set_program_name(Some(&gettext("Blue Recorder"))); about_dialog.set_version(Some("0.2.0"));