prefer std::format over fmt
Now that std::format is implemented we aren't using complex enough fmt
to warrant using it over the std version. Switch to std and remove the
dependency.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ib03cdb6a9db4d25de345bdb49b28157880c19bc1
diff --git a/host_state_manager_main.cpp b/host_state_manager_main.cpp
index 484d6e5..e036ff5 100644
--- a/host_state_manager_main.cpp
+++ b/host_state_manager_main.cpp
@@ -2,7 +2,6 @@
#include "host_state_manager.hpp"
-#include <fmt/format.h>
#include <getopt.h>
#include <sdbusplus/bus.hpp>
@@ -10,6 +9,7 @@
#include <cstdlib>
#include <exception>
#include <filesystem>
+#include <format>
#include <iostream>
constexpr auto LEGACY_HOST_STATE_PERSIST_PATH =
@@ -53,7 +53,7 @@
// exist, rename it to the new file format of host0.
fs::path legacyPath{LEGACY_HOST_STATE_PERSIST_PATH};
- fs::path newPath{fmt::format(HOST_STATE_PERSIST_PATH, hostId)};
+ fs::path newPath{std::format(HOST_STATE_PERSIST_PATH, hostId)};
if (fs::exists(legacyPath))
{
fs::rename(legacyPath, newPath);