From 4001c13f93e70b8dc376b6431eaf25c8952e1cb5 Mon Sep 17 00:00:00 2001 From: Anders Olsson Date: Mon, 28 Jun 2021 22:48:51 +0200 Subject: [PATCH] Fix label --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d52f0b4..50adac3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,7 +100,8 @@ mod handlers { let temperature = locations[location]; - let label = Label::with_value(format!("{}", temperature)).set_postfix("foobar"); + let mut label = Label::with_value(format!("{}", temperature)); + label.set_postfix("foobar"); Ok(warp::reply::json(&label)) }