fmt: fix 'ambigous overload' error

This commit is contained in:
Shawn Hoffman 2022-05-10 16:38:21 -07:00
parent 357dc72f97
commit 56626f73bf

View File

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