diff --git a/include/fmt/format.h b/include/fmt/format.h index 8c6d0451..0f38f30e 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -493,8 +493,8 @@ template = 307 && !FMT_ICC_VERSION __attribute__((no_sanitize("undefined"))) #endif -FMT_CONSTEXPR20 inline auto -reserve(OutputIt it, size_t n) -> typename OutputIt::value_type* { +FMT_CONSTEXPR20 inline auto reserve(OutputIt it, size_t n) -> + typename OutputIt::value_type* { auto& c = get_container(it); size_t size = c.size(); c.resize(size + n); @@ -1360,14 +1360,11 @@ template class to_utf8 { ++p; if (p == s.end() || (c & 0xfc00) != 0xd800 || (*p & 0xfc00) != 0xdc00) { switch (policy) { - case to_utf8_error_policy::abort: - return false; + case to_utf8_error_policy::abort: return false; case to_utf8_error_policy::replace: buf.append(string_view("\xEF\xBF\xBD")); break; - case to_utf8_error_policy::wtf: - to_utf8_3bytes(buf, c); - break; + case to_utf8_error_policy::wtf: to_utf8_3bytes(buf, c); break; } --p; continue;