aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-06-19 12:57:48 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-06-19 12:57:48 +0100
commit2b746e782c48cac5d1d8a54f4c065a4ddeb26cb3 (patch)
treef427f69940a0bd89dcb1dd9e6d7bad0482c24b4a /src/client
parenta703124937bc4fb28c96adcaec8f950c4f6cec3d (diff)
downloadrspamd-2b746e782c48cac5d1d8a54f4c065a4ddeb26cb3.tar.gz
rspamd-2b746e782c48cac5d1d8a54f4c065a4ddeb26cb3.zip
[Minor] Add consteval for fmt wrapper
Diffstat (limited to 'src/client')
-rw-r--r--src/client/rspamc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx
index 1f579c922..6060b621f 100644
--- a/src/client/rspamc.cxx
+++ b/src/client/rspamc.cxx
@@ -346,7 +346,7 @@ struct rspamc_callback_data {
};
template<typename T>
-static auto emphasis_argument(const T &arg, const char *fmt_string = "{}") -> auto {
+static consteval auto emphasis_argument(const T &arg, const char *fmt_string = "{}") -> auto {
if (tty) {
return fmt::format(fmt::emphasis::bold, fmt_string, arg);
}