From 4d2ecf967ce5c00a5b37443aed57bdc6d70e70ed Mon Sep 17 00:00:00 2001 From: Jin S Date: Sun, 10 Dec 2023 23:27:58 -0500 Subject: [PATCH] small code formatting --- include/fmt/format.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index fc649f48..4678d6a8 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -794,13 +794,13 @@ inline auto code_point_index(string_view s, size_t n) -> size_t { size_t result = s.size(); const char* begin = s.begin(); for_each_codepoint(s, [begin, &n, &result](uint32_t, string_view sv) { - if (n != 0) { - --n; - return true; - } - result = to_unsigned(sv.begin() - begin); - return false; - }); + if (n != 0) { + --n; + return true; + } + result = to_unsigned(sv.begin() - begin); + return false; + }); return result; } @@ -2124,8 +2124,8 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, const format_specs& specs, const digit_grouping& grouping) -> OutputIt { static_assert(std::is_same, UInt>::value, ""); - char digits[40]; int num_digits; + char digits[40]; switch (specs.type) { case presentation_type::none: