fix: compile error

main
_ 2024-01-21 19:11:21 -06:00
parent 9ec89a17e2
commit ce737d95a8
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ async fn metrics (
{ {
let mut s = String::with_capacity (4 * 1_024); let mut s = String::with_capacity (4 * 1_024);
let mut push_metric = |name, help, kind, value| { let mut push_metric = |name, help: Option<&str>, kind, value| {
if let Some (help) = help { if let Some (help) = help {
s.push_str (format! ("# HELP {} {}\n", name, help).as_str ()); s.push_str (format! ("# HELP {} {}\n", name, help).as_str ());
} }