Skip to content

Commit

Permalink
refactor: remove redundant references
Browse files Browse the repository at this point in the history
hamirmahal committed Aug 8, 2024
1 parent ba84087 commit ca99fb7
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config_management.rs
Original file line number Diff line number Diff line change
@@ -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 {
2 changes: 1 addition & 1 deletion src/ffmpeg_interface.rs
Original file line number Diff line number Diff line change
@@ -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!(
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -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"));

0 comments on commit ca99fb7

Please sign in to comment.