Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dinomight committed Feb 26, 2025
1 parent 233d8d9 commit 3d9a3e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,8 @@ template <typename Char, typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
void init_named_arg(named_arg_info<Char>* named_args, int& arg_index,
int& named_arg_index, const T& arg) {
for (auto i = 0; i < named_arg_index; ++i) {
if (basic_string_view<Char>(named_args[i].name) == basic_string_view<Char>(arg.name)) {
if (basic_string_view<Char>(named_args[i].name) ==
basic_string_view<Char>(arg.name)) {
report_error("duplicate named args found");
}
}
Expand All @@ -1090,7 +1091,8 @@ template <typename T, typename Char,
FMT_CONSTEXPR void init_static_named_arg(named_arg_info<Char>* named_args,
int& arg_index, int& named_arg_index) {
for (auto i = 0; i < named_arg_index; ++i) {
if (basic_string_view<Char>(named_args[i].name) == basic_string_view<Char>(T::name)) {
if (basic_string_view<Char>(named_args[i].name) ==
basic_string_view<Char>(T::name)) {
report_error("duplicate named args found");
}
}
Expand Down

0 comments on commit 3d9a3e6

Please sign in to comment.