From fa82d1cca1544c401bc06c341ce265a346a498b9 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Sat, 25 May 2024 13:14:46 +0200 Subject: Switch from fmtlib to std::format. (#2031) * Switch from fmtlib to std::format. * Remove libffi from dependencies in Github action. --- src/directoryrefresher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/directoryrefresher.cpp') diff --git a/src/directoryrefresher.cpp b/src/directoryrefresher.cpp index 6abbd0c4..3313b8c5 100644 --- a/src/directoryrefresher.cpp +++ b/src/directoryrefresher.cpp @@ -138,7 +138,7 @@ void dumpStats(std::vector& stats) if (run == 0) { std::ofstream out(file, std::ios::out | std::ios::trunc); - out << fmt::format("what,run,{}", DirectoryStats::csvHeader()) << "\n"; + out << std::format("what,run,{}", DirectoryStats::csvHeader()) << "\n"; } std::sort(stats.begin(), stats.end(), [](auto&& a, auto&& b) { @@ -150,11 +150,11 @@ void dumpStats(std::vector& stats) DirectoryStats total; for (const auto& s : stats) { - out << fmt::format("{},{},{}", s.mod, run, s.toCsv()) << "\n"; + out << std::format("{},{},{}", s.mod, run, s.toCsv()) << "\n"; total += s; } - out << fmt::format("total,{},{}", run, total.toCsv()) << "\n"; + out << std::format("total,{},{}", run, total.toCsv()) << "\n"; ++run; } -- cgit v1.3.1