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:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user