use std::format instead of fmt::format
The std::format is sufficient for the uses in this repository except
for in one file (override_fan_target.cpp, since P2286 isn't supported
by GCC yet). Switch to std::format whenever possible.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ib2576fb530a4d7ce238e1b0bd95b40b476ec2107
diff --git a/control/json/actions/timer_based_actions.cpp b/control/json/actions/timer_based_actions.cpp
index e3f3fec..81d8fc1 100644
--- a/control/json/actions/timer_based_actions.cpp
+++ b/control/json/actions/timer_based_actions.cpp
@@ -23,12 +23,11 @@
#include "sdeventplus.hpp"
#include "zone.hpp"
-#include <fmt/format.h>
-
#include <nlohmann/json.hpp>
#include <algorithm>
#include <chrono>
+#include <format>
namespace phosphor::fan::control::json
{
@@ -180,7 +179,7 @@
else
{
throw ActionParseError{
- getName(), fmt::format("Timer type '{}' is not supported", type)};
+ getName(), std::format("Timer type '{}' is not supported", type)};
}
}