Skip to content

Commit

Permalink
Another try at fixing the custom formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Nov 8, 2024
1 parent 149e5c6 commit da9d938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/data/sector.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ struct Sector : public LogicalLocation
template <>
struct fmt::formatter<Sector::Status> : formatter<string_view>
{
auto format(Sector::Status status, format_context& ctx)
auto format(Sector::Status status, format_context& ctx) const
{
return formatter<string_view>::format(
Sector::statusToString(status), ctx);
return format_to(ctx.out(), "{}",
Sector::statusToString(status));
}
};

Expand Down

0 comments on commit da9d938

Please sign in to comment.