Fix label
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user