Fill: the trend menu cache has a type alias, as main's clippy settings now require

This commit is contained in:
dotCooCoo committed 2026-10-29 03:22:11 -07:00
1 parent a0a2627894
commit 364e48dcab
1 file changed
+3 -1
+3 -1
View File
@@ -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<std::collections::HashSet<(u32, u32)>>);
/// 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<FillTrendsCache>,
/// After a left-drag of the fill handle: the Auto Fill Options button beside the filled cells.
pub fill_tag: Option<FillTag>,
/// The right-clicked chart, picture, shape or slicer: where to open its menu, its kind and id.