| author | |
| committer | |
| log | dd0153b91b55e3b32227562ed68fdaee31c5b844 |
| tree | 26472ed6494c95ccf90b59681cfb64f85b7da96f |
| parent | e56563ce3fb7ae2fb13f66ba6045ffb1f828ae08 |
this used to have a different error set. just goes to show you how
useful switching on error set is even when there is only 1 prong2 files changed, 2 insertions(+), 2 deletions(-)
lib/std/Io.zig+1-1| ... | @@ -303,7 +303,7 @@ pub const Operation = union(enum) { | ... | @@ -303,7 +303,7 @@ pub const Operation = union(enum) { |
| 303 | 303 | ||
| 304 | /// Performs one `Operation`. | 304 | /// Performs one `Operation`. |
| 305 | pub fn operate(io: Io, operation: *Operation) Cancelable!void { | 305 | pub fn operate(io: Io, operation: *Operation) Cancelable!void { |
| 306 | return io.vtable.operate(io.userdata, operation) catch unreachable; | 306 | return io.vtable.operate(io.userdata, operation); |
| 307 | } | 307 | } |
| 308 | 308 | ||
| 309 | /// Submits many operations together without waiting for all of them to | 309 | /// Submits many operations together without waiting for all of them to |
lib/std/Io/Threaded.zig+1-1| ... | @@ -2465,7 +2465,7 @@ fn operate(userdata: ?*anyopaque, op: *Io.Operation) Io.Cancelable!void { | ... | @@ -2465,7 +2465,7 @@ fn operate(userdata: ?*anyopaque, op: *Io.Operation) Io.Cancelable!void { |
| 2465 | .file_read_streaming => |*o| { | 2465 | .file_read_streaming => |*o| { |
| 2466 | _ = o.status.unstarted; | 2466 | _ = o.status.unstarted; |
| 2467 | o.status = .{ .result = fileReadStreaming(o.file, o.data) catch |err| switch (err) { | 2467 | o.status = .{ .result = fileReadStreaming(o.file, o.data) catch |err| switch (err) { |
| 2468 | error.Canceled => return error.Canceled, | 2468 | error.Canceled => |e| return e, |
| 2469 | else => |e| e, | 2469 | else => |e| e, |
| 2470 | } }; | 2470 | } }; |
| 2471 | }, | 2471 | }, |