fmt: fix 'ambigous overload' error

This commit is contained in:
Shawn Hoffman 2022-05-10 16:38:21 -07:00
parent 357dc72f97
commit 56626f73bf
1 changed files with 8 additions and 8 deletions

View File

@ -1231,10 +1231,10 @@ struct fmt::formatter<ScissorPos>
template <typename FormatContext> template <typename FormatContext>
auto format(const ScissorPos& pos, FormatContext& ctx) auto format(const ScissorPos& pos, FormatContext& ctx)
{ {
return format_to(ctx.out(), return fmt::format_to(ctx.out(),
"X: {} (raw: {})\n" "X: {} (raw: {})\n"
"Y: {} (raw: {})", "Y: {} (raw: {})",
pos.x - 342, pos.x_full, pos.y - 342, pos.y_full); pos.x - 342, pos.x_full, pos.y - 342, pos.y_full);
} }
}; };
@ -1257,10 +1257,10 @@ struct fmt::formatter<ScissorOffset>
template <typename FormatContext> template <typename FormatContext>
auto format(const ScissorOffset& off, FormatContext& ctx) auto format(const ScissorOffset& off, FormatContext& ctx)
{ {
return format_to(ctx.out(), return fmt::format_to(ctx.out(),
"X: {} (raw: {})\n" "X: {} (raw: {})\n"
"Y: {} (raw: {})", "Y: {} (raw: {})",
(off.x << 1) - 342, off.x_full, (off.y << 1) - 342, off.y_full); (off.x << 1) - 342, off.x_full, (off.y << 1) - 342, off.y_full);
} }
}; };