client/Response: add method Fmt() based on libfmt
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#include "client/Response.hxx"
|
||||
#include "time/ISO8601.hxx"
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
void
|
||||
time_print(Response &r, const char *name,
|
||||
std::chrono::system_clock::time_point t)
|
||||
@@ -33,5 +35,5 @@ time_print(Response &r, const char *name,
|
||||
return;
|
||||
}
|
||||
|
||||
r.Format("%s: %s\n", name, s.c_str());
|
||||
r.Fmt(FMT_STRING("{}: {}\n"), name, s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user