clean up std.Buffer.print
parent
6fa143355f
commit
7cfe854359
|
@ -149,13 +149,7 @@ pub const Buffer = struct {
|
|||
}
|
||||
|
||||
pub fn print(self: *Buffer, comptime fmt: []const u8, args: var) !void {
|
||||
try std.fmt.format(
|
||||
self,
|
||||
@typeInfo(@TypeOf(Buffer.append)).Fn.return_type.?.ErrorSet,
|
||||
Buffer.append,
|
||||
fmt,
|
||||
args,
|
||||
);
|
||||
return std.fmt.format(self, error{OutOfMemory}, Buffer.append, fmt, args);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue