From a8982aafbdb3bb40beac34ec0ea71452064a3ed9 Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 19 Nov 2026 21:07:16 +0000 Subject: [PATCH] DocQueries: name the History rows' key type --- crates/ui-egui/src/app/doc_queries.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/app/doc_queries.rs b/crates/ui-egui/src/app/doc_queries.rs index 5c7b09edfe..1b779a5300 100644 --- a/crates/ui-egui/src/app/doc_queries.rs +++ b/crates/ui-egui/src/app/doc_queries.rs @@ -31,6 +31,9 @@ struct Entries { builds: u64, } +/// The history's generation and the snapshots' generation. +type HistoryKey = (u64, u64); + /// One document's values. Those keyed on the document revision are valid for `revision`; the History rows carry /// their own key. #[derive(Default)] @@ -46,7 +49,7 @@ struct Entry { /// The uncovered rects and the display revision of the document they were measured on. uncovered: Option<(u64, Arc<[DocRect]>)>, /// The History rows and the history and snapshot generations they were built from. - history: Option<((u64, u64), Arc<[HistoryRow]>)>, + history: Option<(HistoryKey, Arc<[HistoryRow]>)>, } /// The layers of a document a Move tool drag moves, before the live text edit and Free Transform are added.