| ... | @@ -39,7 +39,7 @@ pub const StreamSource = union(enum) { | ... | @@ -39,7 +39,7 @@ pub const StreamSource = union(enum) { |
| 39 | pub fn write(self: *StreamSource, bytes: []const u8) WriteError!usize { | 39 | pub fn write(self: *StreamSource, bytes: []const u8) WriteError!usize { |
| 40 | switch (self.*) { | 40 | switch (self.*) { |
| 41 | .buffer => |*x| return x.write(bytes), | 41 | .buffer => |*x| return x.write(bytes), |
| 42 | .const_buffer => |*x| return x.write(bytes), | 42 | .const_buffer => return error.AccessDenied, |
| 43 | .file => |x| return x.write(bytes), | 43 | .file => |x| return x.write(bytes), |
| 44 | } | 44 | } |
| 45 | } | 45 | } |