mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 09:22:42 +01:00
Codechange: Add format_append as short-hand to format_to + back_inserter.
This commit is contained in:
@@ -203,7 +203,7 @@ std::string GetDebugString()
|
||||
std::string result;
|
||||
for (const auto &debug_level : _debug_levels) {
|
||||
if (!result.empty()) result += ", ";
|
||||
fmt::format_to(std::back_inserter(result), "{}={}", debug_level.name, *debug_level.level);
|
||||
format_append(result, "{}={}", debug_level.name, *debug_level.level);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user