From 921dffdec037e810e5a2fe32562b9ba4fde9f651 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 28 Nov 2026 08:25:06 -0800 Subject: [PATCH] File dialogs: drop the unread Waiting::owner field #9555 merged with a merge of main that brought back the `owner` field on `Waiting`. Main had removed it once the document check moved to the captured UID and Revert counter. Nothing reads it, so clippy's `-D warnings` failed main's gate with "field `owner` is never read" at crates/ui-egui/src/file_asks.rs:42. The fix commit on #9555's branch (8ed117a988) did not reach main before the merge. --- crates/ui-egui/src/file_asks.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ui-egui/src/file_asks.rs b/crates/ui-egui/src/file_asks.rs index 61b8bd48be..f1e90aea30 100644 --- a/crates/ui-egui/src/file_asks.rs +++ b/crates/ui-egui/src/file_asks.rs @@ -39,7 +39,6 @@ pub(crate) enum Owner { /// A pick asked for and not yet answered. struct Waiting { ticket: PickId, - owner: Owner, /// The file service is writing bytes that the caller already prepared. saving: bool, /// The active drawing's UID and Revert counter when asked, if the request is document-owned. @@ -168,7 +167,7 @@ fn start( Owner::Free => None, }; let (scope, automated) = (ScopeHandle::capture(), app.automation_asked()); - app.file_asks.waiting.push(Waiting { ticket, owner, saving, doc, scope, automated, current, then: Box::new(then) }); + app.file_asks.waiting.push(Waiting { ticket, saving, doc, scope, automated, current, then: Box::new(then) }); json!({ "pending": "fileDialog" }) }