diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 401178e2e984a..7d34fff9ffcaa 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -1212,11 +1212,11 @@ class tm_writer { } uint32_or_64_or_128_t n = to_unsigned(year); const int num_digits = count_digits(n); - if(negative && pad == pad_type::zero) *out_++ = '-'; + if (negative && pad == pad_type::zero) *out_++ = '-'; if (width > num_digits) { out_ = detail::write_padding(out_, pad, width - num_digits); } - if(negative && pad != pad_type::zero) *out_++ = '-'; + if (negative && pad != pad_type::zero) *out_++ = '-'; out_ = format_decimal(out_, n, num_digits); } void write_year(long long year, pad_type pad) { @@ -1450,7 +1450,9 @@ class tm_writer { format_localized('V', 'O'); } - void on_iso_week_based_year() { write_year(tm_iso_week_year(), pad_type::zero); } + void on_iso_week_based_year() { + write_year(tm_iso_week_year(), pad_type::zero); + } void on_iso_week_based_short_year() { write2(split_year_lower(tm_iso_week_year())); } @@ -1460,8 +1462,7 @@ class tm_writer { auto digit1 = yday / 100; if (digit1 != 0) { write1(digit1); - } - else { + } else { out_ = detail::write_padding(out_, pad); } write2(yday % 100, pad); diff --git a/include/fmt/xchar.h b/include/fmt/xchar.h index a43530f12b3ef..da593d33f9e80 100644 --- a/include/fmt/xchar.h +++ b/include/fmt/xchar.h @@ -117,8 +117,7 @@ template <> struct is_char : std::true_type {}; template <> struct is_char : std::true_type {}; #ifdef __cpp_char8_t -template <> -struct is_char : bool_constant {}; +template <> struct is_char : bool_constant {}; #endif template