General: Resolve fmt specifiers to adhere to 8.0.0 API where applicable

Also removes some deprecated API usages.
This commit is contained in:
Lioncash 2021-06-23 09:59:56 -04:00
parent c3fe071723
commit d0b1f2bd05
9 changed files with 23 additions and 15 deletions

View file

@ -53,8 +53,9 @@ template <typename ContiguousContainer>
std::string out;
out.reserve(std::size(data) * pad_width);
const auto format_str = fmt::runtime(upper ? "{:02X}" : "{:02x}");
for (const u8 c : data) {
out += fmt::format(upper ? "{:02X}" : "{:02x}", c);
out += fmt::format(format_str, c);
}
return out;