chore: clippy
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user