PhotoCraft: An open-source, photo editor written by scratch in pure Rust
ui-egui tests: drop the shadowing joined closure (fixes clippy dead-code on main) (#2924)
Brandon Thomase1a13013b669
diff --git a/crates/ui-egui/src/file_dialog/tests.rs b/crates/ui-egui/src/file_dialog/tests.rsindex 56eb45b6f..eedeb57f0 100644--- a/crates/ui-egui/src/file_dialog/tests.rs+++ b/crates/ui-egui/src/file_dialog/tests.rs@@ -305,8 +305,6 @@ fn save_dialogs_remember_where_each_document_was_last_saved() {FileDialogRequest::Save { suggested } => suggested.clone(),other => panic!("save dialog expected, got {other:?}"),};- // Suggestions are built with `Path::join`, which uses `\` on Windows (#2745).- let joined = |dir: &str, name: &str| std::path::Path::new(dir).join(name).to_string_lossy().into_owned();// An export starts beside the document; the user saves it under /renders instead.app.pick_save("result.png", |_, _| Ok(Value::Null)).unwrap();app.poll_file_dialog(&ctx, None);