mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
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.
This commit is contained in:
1 parent
ab4b8bb64a
commit
921dffdec0
1 file changed
+1
-2
@@ -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" })
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user