std.fmt: fully remove format string from format methods
Introduces `std.fmt.alt` which is a helper for calling alternate format methods besides one named "format".
This commit is contained in:
@@ -119,8 +119,7 @@ pub const Oid = union(Format) {
|
||||
} else error.InvalidOid;
|
||||
}
|
||||
|
||||
pub fn format(oid: Oid, writer: *std.io.Writer, comptime fmt: []const u8) std.io.Writer.Error!void {
|
||||
comptime assert(fmt.len == 0);
|
||||
pub fn format(oid: Oid, writer: *std.io.Writer) std.io.Writer.Error!void {
|
||||
try writer.print("{x}", .{oid.slice()});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user