chore: clippy
This commit is contained in:
@ -679,7 +679,7 @@ impl Cmd for EditOrDrill {
|
|||||||
let is_synthetic = ctx
|
let is_synthetic = ctx
|
||||||
.cell_key()
|
.cell_key()
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|k| crate::view::synthetic_record_info(k))
|
.and_then(crate::view::synthetic_record_info)
|
||||||
.is_some();
|
.is_some();
|
||||||
let is_aggregated = !is_synthetic && regular_none;
|
let is_aggregated = !is_synthetic && regular_none;
|
||||||
if is_aggregated {
|
if is_aggregated {
|
||||||
@ -707,7 +707,7 @@ impl Cmd for AddRecordRow {
|
|||||||
let is_records = ctx
|
let is_records = ctx
|
||||||
.cell_key()
|
.cell_key()
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|k| crate::view::synthetic_record_info(k))
|
.and_then(crate::view::synthetic_record_info)
|
||||||
.is_some();
|
.is_some();
|
||||||
if !is_records {
|
if !is_records {
|
||||||
return vec![effect::set_status(
|
return vec![effect::set_status(
|
||||||
@ -749,7 +749,7 @@ impl Cmd for OpenRecordRow {
|
|||||||
let is_records = ctx
|
let is_records = ctx
|
||||||
.cell_key()
|
.cell_key()
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|k| crate::view::synthetic_record_info(k))
|
.and_then(crate::view::synthetic_record_info)
|
||||||
.is_some();
|
.is_some();
|
||||||
if !is_records {
|
if !is_records {
|
||||||
return vec![effect::set_status(
|
return vec![effect::set_status(
|
||||||
|
|||||||
@ -59,7 +59,7 @@ impl<'a> GridWidget<'a> {
|
|||||||
let n_col_levels = layout.col_cats.len().max(1);
|
let n_col_levels = layout.col_cats.len().max(1);
|
||||||
let n_row_levels = layout.row_cats.len().max(1);
|
let n_row_levels = layout.row_cats.len().max(1);
|
||||||
|
|
||||||
let col_widths = compute_col_widths(self.model, &layout, fmt_comma, fmt_decimals);
|
let col_widths = compute_col_widths(self.model, layout, fmt_comma, fmt_decimals);
|
||||||
|
|
||||||
// ── Adaptive row header widths ───────────────────────────────
|
// ── Adaptive row header widths ───────────────────────────────
|
||||||
let data_row_items: Vec<&Vec<String>> = layout
|
let data_row_items: Vec<&Vec<String>> = layout
|
||||||
|
|||||||
Reference in New Issue
Block a user