treewide: Convert most fmt::format -> std::format
Change-Id: I3c9ac1eed1c86c6cd9f7fd3a1ba356734e79f937
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/ethernet_interface.cpp b/src/ethernet_interface.cpp
index 11485b9..fdd01c2 100644
--- a/src/ethernet_interface.cpp
+++ b/src/ethernet_interface.cpp
@@ -6,7 +6,6 @@
#include "system_queries.hpp"
#include "util.hpp"
-#include <fmt/format.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <net/if_arp.h>
@@ -20,6 +19,7 @@
#include <algorithm>
#include <filesystem>
+#include <format>
#include <string>
#include <unordered_map>
#include <variant>
@@ -527,7 +527,7 @@
ServerList EthernetInterface::getNameServerFromResolvd()
{
ServerList servers;
- auto OBJ_PATH = fmt::format("{}{}", RESOLVED_SERVICE_PATH, ifIdx);
+ auto OBJ_PATH = std::format("{}{}", RESOLVED_SERVICE_PATH, ifIdx);
/*
The DNS property under org.freedesktop.resolve1.Link interface contains
@@ -704,9 +704,7 @@
{
if (originIsManuallyAssigned(addr.second->origin()))
{
- address.emplace_back(
- fmt::format("{}/{}", addr.second->address(),
- addr.second->prefixLength()));
+ address.emplace_back(stdplus::toStr(addr.first));
}
}
}