From 9ed83f0b96dc56b7a881442bfdb41533a2438c12 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 22 Aug 2021 00:14:50 -0400 Subject: [PATCH] Misc improvements --- src/webui.rs | 4 ++++ templates/control.html | 10 ++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/webui.rs b/src/webui.rs index 4b980a1..1d780b0 100644 --- a/src/webui.rs +++ b/src/webui.rs @@ -100,6 +100,10 @@ async fn start_socket(req: HttpRequest, stream: web::Payload) -> impl Responder state.parameters = params; state .render() + .map(|s| { + println!("{}", s); + s + }) .map_err(|e| { format!("Error rendering state: {:?}", e); e diff --git a/templates/control.html b/templates/control.html index 9173103..286441a 100644 --- a/templates/control.html +++ b/templates/control.html @@ -1,14 +1,12 @@