Replace fmt::format with std::format

This commit is contained in:
2024-09-18 16:44:01 +02:00
parent e885482ca4
commit 2ff4a6a093

View File

@@ -6,15 +6,13 @@
// system includes
#include <cassert>
#include <expected>
#include <format>
// esp-idf includes
#include <lwip/priv/tcpip_priv.h>
#include <lwip/prot/ethernet.h>
#include <esp_log.h>
// 3rdparty lib includes
#include <fmt/core.h>
namespace {
constexpr const char * const TAG = "ASYNC_UDP_LISTENER";
@@ -163,7 +161,7 @@ std::expected<UdpPacketWrapper, std::string> makeUdpPacketWrapper(pbufUniquePtr
return std::unexpected("udp response on ipv6 not supported");
}
default:
return std::unexpected(fmt::format("unknown ip type {}", _remoteAddr.type));
return std::unexpected(std::format("unknown ip type {}", _remoteAddr.type));
}
std::string_view _data{payload, _pb->len};