From 364e48dcabdaeda2ebad949b78e1fa3be47f8e13 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Thu, 29 Oct 2026 03:22:11 -0700 Subject: [PATCH] Fill: the trend menu cache has a type alias, as main's clippy settings now require --- crates/ui-egui/src/grid.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/grid.rs b/crates/ui-egui/src/grid.rs index e9a633c706..eda0f16dba 100644 --- a/crates/ui-egui/src/grid.rs +++ b/crates/ui-egui/src/grid.rs @@ -21,6 +21,8 @@ pub(crate) type PaneQuad = ((u32, u32), (u32, u32), Rect); type PagesCache = ((u64, u64, usize), Vec<(RangeRef, u32)>); /// Cached Show Details cells, keyed by (doc uid, revision, sheet, pivot). type DetailsCache = ((u64, u64, usize, usize), Option>); +/// Cached fill-menu trend entries (label, mode), keyed by (doc uid, revision, sheet, source, dragged range). +pub type FillTrendsCache = ((u64, u64, usize, RangeRef, RangeRef), Vec<(&'static str, &'static str)>); mod cell_paint; mod cursor; @@ -197,7 +199,7 @@ pub struct GridState { pub fill_menu: Option<(RangeRef, RangeRef, Pos2)>, /// The trends the fill menu lists, cached per (doc uid, revision, sheet, source, dragged range): /// finding them reads every source cell. - pub fill_menu_trends: Option<((u64, u64, usize, RangeRef, RangeRef), Vec<(&'static str, &'static str)>)>, + pub fill_menu_trends: Option, /// After a left-drag of the fill handle: the Auto Fill Options button beside the filled cells. pub fill_tag: Option, /// The right-clicked chart, picture, shape or slicer: where to open its menu, its kind and id.