chore: clippy

This commit is contained in:
Edward Langley
2026-04-07 00:16:25 -07:00
parent 386b9f6b27
commit 6f3af34056
3 changed files with 9 additions and 14 deletions

View File

@ -227,9 +227,9 @@ impl GridLayout {
// Build a row×col grid of "has content?"
let mut has_value = vec![vec![false; cc]; rc];
for ri in 0..rc {
for ci in 0..cc {
has_value[ri][ci] = self
for (ri, row) in has_value.iter_mut().enumerate() {
for (ci, cell) in row.iter_mut().enumerate() {
*cell = self
.cell_key(ri, ci)
.and_then(|k| model.evaluate_aggregated(&k, &self.none_cats))
.is_some();
@ -395,8 +395,7 @@ impl GridLayout {
/// page-axis filter. Returns None if row or col is out of bounds.
/// In records mode: returns a synthetic `(_Index, _Dim)` key for every column.
pub fn cell_key(&self, row: usize, col: usize) -> Option<CellKey> {
if self.records.is_some() {
let records = self.records.as_ref().unwrap();
if let Some(records) = &self.records {
if row >= records.len() {
return None;
}