From: Scott Worley Date: Sat, 19 Nov 2022 07:54:25 +0000 (-0800) Subject: Enable checkboxes on page load X-Git-Tag: v0.2.0~9 X-Git-Url: http://git.scottworley.com/voter/commitdiff_plain/9d82c13f6abc03482d4c669aa6c89a8c570fad49?hp=3a28e7710ce3acd2817d40b65bcc313171adf41e Enable checkboxes on page load --- diff --git a/src/main.rs b/src/main.rs index 4c09c10..bd329fa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -81,8 +81,15 @@ const HTML_HEADER: &str = " Vote! + "; @@ -99,7 +106,9 @@ fn prompt_for_vote(dir: PathBuf, request: cgi::Request) -> Result")) + rc.map(|c| { + format!("") + }) })) .chain(std::iter::once(Ok(HTML_FOOTER.to_owned()))) .collect::>()
{c}
{c}