refactor: remove redundant references

This commit is contained in:
Hamir Mahal 2024-08-08 01:48:41 -07:00
parent ba84087c03
commit ca99fb7578
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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!(

View File

@ -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"));