Skip to content

Commit 6bbba07

Browse files
committed
Minor cleanup
1 parent 01e6f01 commit 6bbba07

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

include/fmt/base.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,9 +2757,7 @@ template <typename... T> struct fstring {
27572757
static_assert(count<(is_view<remove_cvref_t<T>>::value &&
27582758
std::is_reference<T>::value)...>() == 0,
27592759
"passing views as lvalues is disallowed");
2760-
#if FMT_USE_CONSTEVAL
2761-
parse_format_string<char>(s, checker(s, arg_pack()));
2762-
#endif
2760+
if (FMT_USE_CONSTEVAL) parse_format_string<char>(s, checker(s, arg_pack()));
27632761
#ifdef FMT_ENFORCE_COMPILE_STRING
27642762
static_assert(
27652763
FMT_USE_CONSTEVAL && sizeof(s) != 0,
@@ -2783,9 +2781,8 @@ template <typename... T> struct fstring {
27832781
std::is_same<typename S::char_type, char>::value)>
27842782
FMT_ALWAYS_INLINE fstring(const S&) : str(S()) {
27852783
FMT_CONSTEXPR auto sv = string_view(S());
2786-
FMT_CONSTEXPR int unused =
2787-
(parse_format_string(sv, checker(sv, arg_pack())), 0);
2788-
detail::ignore_unused(unused);
2784+
FMT_CONSTEXPR int x = (parse_format_string(sv, checker(sv, arg_pack())), 0);
2785+
detail::ignore_unused(x);
27892786
}
27902787
fstring(runtime_format_string<> fmt) : str(fmt.str) {}
27912788

0 commit comments

Comments
 (0)