Fix unused argument error when formatting std.Target

This commit is contained in:
LiterallyVoid 2020-08-22 16:50:25 -07:00 committed by Andrew Kelley
parent bb9c3118ed
commit 4bbea3422a

View File

@ -133,9 +133,7 @@ pub const Target = struct {
if (@enumToInt(self) >= @enumToInt(WindowsVersion.nt4) and @enumToInt(self) <= @enumToInt(WindowsVersion.win10_19h1)) {
try std.fmt.format(out_stream, "WindowsVersion.{}", .{@tagName(self)});
} else {
try std.fmt.format(out_stream, "WindowsVersion(", .{@typeName(@This())});
try std.fmt.format(out_stream, "{}", .{@enumToInt(self)});
try out_stream.writeAll(")");
try std.fmt.format(out_stream, "WindowsVersion({})", .{@enumToInt(self)});
}
}
}