From d0b1f2bd05a2fcadbb4c148be2105e337dd986e8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 23 Jun 2021 09:59:56 -0400 Subject: General: Resolve fmt specifiers to adhere to 8.0.0 API where applicable Also removes some deprecated API usages. --- src/common/hex_util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common/hex_util.h') diff --git a/src/common/hex_util.h b/src/common/hex_util.h index a8d414fb8..f5f9e4507 100644 --- a/src/common/hex_util.h +++ b/src/common/hex_util.h @@ -53,8 +53,9 @@ template 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; -- cgit v1.2.3