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 <[email protected]>
This commit is contained in:
Brandon ThomasandClaude Opus 5.5 authored and GitHub committed 2026-10-10 18:34:51 -04:00
1 parent 7687380604
commit e1a13013b6
1 file changed
-2
-2
View File
@@ -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);