| ... | @@ -149,13 +149,7 @@ pub const Buffer = struct { | ... | @@ -149,13 +149,7 @@ pub const Buffer = struct { |
| 149 | } | 149 | } |
| 150 | | 150 | |
| 151 | pub fn print(self: *Buffer, comptime fmt: []const u8, args: var) !void { | 151 | pub fn print(self: *Buffer, comptime fmt: []const u8, args: var) !void { |
| 152 | try std.fmt.format( | 152 | return std.fmt.format(self, error{OutOfMemory}, Buffer.append, fmt, args); |
| 153 | self, | | |
| 154 | @typeInfo(@TypeOf(Buffer.append)).Fn.return_type.?.ErrorSet, | | |
| 155 | Buffer.append, | | |
| 156 | fmt, | | |
| 157 | args, | | |
| 158 | ); | | |
| 159 | } | 153 | } |
| 160 | }; | 154 | }; |
| 161 | | 155 | |