aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/rspamc.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-07-01 20:35:25 +0600
committerGitHub <noreply@github.com>2024-07-01 20:35:25 +0600
commit1d865d80a50c4cea8b2aa61222996aa2d2b0a83d (patch)
treebe4e617ec91333e78d8fbb42d08ad7b03d01c0a9 /src/client/rspamc.cxx
parent6862a6bff243d5b57fb64e8ece97f65c6cc9ac16 (diff)
parenta244411f56d2f1ce39bcca82604d4828167ea17e (diff)
downloadrspamd-1d865d80a50c4cea8b2aa61222996aa2d2b0a83d.tar.gz
rspamd-1d865d80a50c4cea8b2aa61222996aa2d2b0a83d.zip
Merge pull request #5034 from rspamd/vstakhov-fmt-11
Update embedded fmtlib to 11.0
Diffstat (limited to 'src/client/rspamc.cxx')
-rw-r--r--src/client/rspamc.cxx10
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;
}