From 58c0a717743d262025e664eb6ce79ad9cd4c7968 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 25 Sep 2024 18:03:09 -0700 Subject: [PATCH 1/1] =?utf8?q?Rename=20render=5Finstance=20=E2=86=92=20ren?= =?utf8?q?der=5Fone=5Finstance?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 357a7ee..f1da5f7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -187,7 +187,7 @@ fn column_order(rows: &[Row]) -> Vec { .collect() } -fn render_instance(instance: &Option) -> HTML { +fn render_one_instance(instance: &Option) -> HTML { match instance { None => HTML::from("✓"), Some(instance) => HTML::escape(instance.as_ref()), @@ -212,7 +212,7 @@ fn render_cell(col: &str, row: &mut Row) -> HTML { instances .unwrap() .iter() - .map(render_instance) + .map(render_one_instance) .map(|html| html.0) // Waiting for slice_concat_trait to stabilize .collect::>() .join(" "), -- 2.44.1