diff options
Diffstat (limited to 'src/client/rspamc.cxx')
-rw-r--r-- | src/client/rspamc.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx index 5a9a654e4..1e0830493 100644 --- a/src/client/rspamc.cxx +++ b/src/client/rspamc.cxx @@ -1053,21 +1053,21 @@ rspamc_metric_output(FILE *out, const ucl_object_t *obj) std::string colorized_action; switch (act.value()) { case METRIC_ACTION_REJECT: - colorized_action = fmt::format(fmt::fg(fmt::color::red), "reject"); + colorized_action = fmt::format(fmt::fg(fmt::color::red), "{}", "reject"); break; case METRIC_ACTION_NOACTION: - colorized_action = fmt::format(fmt::fg(fmt::color::green), "no action"); + colorized_action = fmt::format(fmt::fg(fmt::color::green), "{}", "no action"); break; case METRIC_ACTION_ADD_HEADER: case METRIC_ACTION_REWRITE_SUBJECT: - colorized_action = fmt::format(fmt::fg(fmt::color::orange), ucl_object_tostring(elt)); + colorized_action = fmt::format(fmt::fg(fmt::color::orange), "{}", ucl_object_tostring(elt)); break; case METRIC_ACTION_GREYLIST: case METRIC_ACTION_SOFT_REJECT: - colorized_action = fmt::format(fmt::fg(fmt::color::gray), ucl_object_tostring(elt)); + colorized_action = fmt::format(fmt::fg(fmt::color::gray), "{}", ucl_object_tostring(elt)); break; default: - colorized_action = fmt::format(fmt::emphasis::bold, ucl_object_tostring(elt)); + colorized_action = fmt::format(fmt::emphasis::bold, "{}", ucl_object_tostring(elt)); break; } |