Fix label

This commit is contained in:
2021-06-28 22:48:51 +02:00
parent 7934b36b4e
commit 4001c13f93

View File

@@ -100,7 +100,8 @@ mod handlers {
let temperature = locations[location]; 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)) Ok(warp::reply::json(&label))
} }