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_reset_recovery.cpp b/host_reset_recovery.cpp
index a8d3842..3040ebf 100644
--- a/host_reset_recovery.cpp
+++ b/host_reset_recovery.cpp
@@ -11,6 +11,7 @@
 #include <xyz/openbmc_project/State/Boot/Progress/client.hpp>
 
 #include <cstdlib>
+#include <format>
 #include <fstream>
 #include <string>
 
@@ -114,12 +115,9 @@
 // completed and the phosphor-chassis-state-manager code has processed it.
 bool isChassisTargetComplete()
 {
-    auto size = std::snprintf(nullptr, 0, CHASSIS_ON_FILE, 0);
-    size++; // null
-    std::unique_ptr<char[]> buf(new char[size]);
-    std::snprintf(buf.get(), size, CHASSIS_ON_FILE, 0);
+    auto chassisFile = std::format(CHASSIS_ON_FILE, 0);
 
-    std::ifstream f(buf.get());
+    std::ifstream f(chassisFile);
     return !f.good();
 }