From 74bd4cd1e2035284040bbaf894c271423b7a5455 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 25 Sep 2024 17:43:45 -0700 Subject: [PATCH 1/1] in render_row: name 'cells' --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 47e1d3a..357a7ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -226,12 +226,12 @@ fn render_cell(col: &str, row: &mut Row) -> HTML { fn render_row(columns: &[String], row: &mut Row) -> HTML { let row_label = HTML::escape(row.label.as_ref()); + let cells = columns + .iter() + .map(|col| render_cell(col, row)) + .collect::(); HTML(format!( - "{row_label}{}\n", - &columns - .iter() - .map(|col| render_cell(col, row)) - .collect::() + "{row_label}{cells}\n" )) } -- 2.44.1