Satisfy rustfmt and clippy on the album and folder picker changes

rustfmt over the files the albums work touched, and the album merge's
incoming row as a named struct rather than an eight-field tuple, which
clippy's type_complexity refused.
This commit is contained in:
2026-09-26 14:13:54 -04:00
parent 1abb18d972
commit 9b580c3720
18 changed files with 487 additions and 303 deletions
+8 -2
View File
@@ -1100,9 +1100,15 @@ pub fn wire_named(
window.on_browse_presets(move |file| {
let Some(w) = weak.upgrade() else { return };
let (title, pick) = if file {
("Import a Lightroom preset", crate::folder_dialog::Pick::File(&["xmp"]))
(
"Import a Lightroom preset",
crate::folder_dialog::Pick::File(&["xmp"]),
)
} else {
("Import a folder of Lightroom presets", crate::folder_dialog::Pick::Folder)
(
"Import a folder of Lightroom presets",
crate::folder_dialog::Pick::Folder,
)
};
let (weak, named) = (weak.clone(), named.clone());
crate::folder_dialog::ask(&w, title, pick, None, move |path| {