From 7b83509a93b27c3efd4be44598545d3dbd8e741a Mon Sep 17 00:00:00 2001 From: Harrison Booth <73434116+Harrison-Booth@users.noreply.github.com> Date: Tue, 27 Oct 2026 17:28:43 -0500 Subject: [PATCH] Filter test: build the table rows outside json! so the test compiles --- crates/engine/tests/it/subtotal_filter_roundtrip.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/engine/tests/it/subtotal_filter_roundtrip.rs b/crates/engine/tests/it/subtotal_filter_roundtrip.rs index 54931640f..ddc868701 100644 --- a/crates/engine/tests/it/subtotal_filter_roundtrip.rs +++ b/crates/engine/tests/it/subtotal_filter_roundtrip.rs @@ -193,9 +193,9 @@ fn turning_a_table_filter_off_hides_the_rows_of_all_other_filtered_tables() { let mut s = Session::new(); s.new_workbook(); for (col, keys) in [("A", "k"), ("D", "x"), ("G", "z")] { - let rows: Vec = (1..=5).map(|n| json!([format!("{keys}{n}"), n])).collect(); - s.execute("range.setValues", json!({"range": format!("{col}1"), "values": [json!(["K", "V"])].into_iter().chain(rows).collect::>()})) - .unwrap(); + let mut values = vec![json!(["K", "V"])]; + values.extend((1..=5).map(|n| json!([format!("{keys}{n}"), n]))); + s.execute("range.setValues", json!({"range": format!("{col}1"), "values": values})).unwrap(); } for range in ["A1:B6", "D1:E6", "G1:H6"] { s.execute("insert.table", json!({"range": range, "header": true})).unwrap();