Swift: update fmt

This commit is contained in:
Paolo Tranquilli
2025-11-19 13:51:28 +01:00
parent e850a8a46c
commit 83b3711973
4 changed files with 5 additions and 23 deletions

View File

@@ -1,20 +0,0 @@
#pragma once
// Provides formatters for standard library types to be used with fmtlib.
// TODO: Patch fmtlib to support using `fmt/std.h` without RTTI
// (https://github.com/fmtlib/fmt/issues/3170).
#include <filesystem>
#include <fmt/format.h>
#include <string_view>
namespace fmt {
FMT_FORMAT_AS(std::filesystem::path, std::string);
}
template <>
struct fmt::formatter<std::error_code> : fmt::formatter<std::string> {
auto format(const std::error_code& e, format_context& ctx) const {
return fmt::formatter<std::string>::format(e.message(), ctx);
}
};

View File

@@ -8,8 +8,7 @@
#include <fmt/format.h>
#include <fmt/chrono.h>
#include "swift/logging/Formatters.h"
#include <fmt/std.h>
#include <binlog/binlog.hpp>
#include <binlog/TextOutputStream.hpp>