mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 00:42:45 +01:00
Codechange: Add format_append as short-hand to format_to + back_inserter.
This commit is contained in:
@@ -78,7 +78,7 @@ std::string FormatArrayAsHex(std::span<const uint8_t> data)
|
||||
str.reserve(data.size() * 2 + 1);
|
||||
|
||||
for (auto b : data) {
|
||||
fmt::format_to(std::back_inserter(str), "{:02X}", b);
|
||||
format_append(str, "{:02X}", b);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
Reference in New Issue
Block a user