From: Scott Worley Date: Thu, 26 Sep 2024 01:03:09 +0000 (-0700) Subject: Rename render_instance → render_one_instance X-Git-Tag: v0.3.0~11 X-Git-Url: http://git.scottworley.com/tablify/commitdiff_plain/58c0a717743d262025e664eb6ce79ad9cd4c7968?ds=inline Rename render_instance → render_one_instance --- 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(" "),