From e1a13013b669c82c442e11744d5f02cf8966e15a Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 10 Oct 2026 18:34:51 -0400 Subject: [PATCH] ui-egui tests: drop the shadowing joined closure (fixes clippy dead-code on main) (#2924) #2782 and #2853 both fixed the save-dialog test's path expectations; together they left a top-level joined() helper shadowed by an identical local closure, so clippy -D warnings fails with "function joined is never used". The test now uses the documented helper. Co-authored-by: Claude Opus 5.5 --- crates/ui-egui/src/file_dialog/tests.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/ui-egui/src/file_dialog/tests.rs b/crates/ui-egui/src/file_dialog/tests.rs index 56eb45b6ff..eedeb57f03 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);