Skip to content

Commit cd846ed

Browse files
committed
update to 0.15.0-dev.355+206bd1ced
1 parent 198bbbb commit cd846ed

File tree

4 files changed

+8
-28
lines changed

4 files changed

+8
-28
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/aio/IoUring.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ fn uring_handle_completion(comptime op_type: Operation, op: op_type.Type(), stat
945945
.socket => switch (err) {
946946
.SUCCESS, .INTR, .AGAIN, .FAULT => unreachable,
947947
.CANCELED => error.Canceled,
948-
.ACCES => error.PermissionDenied,
948+
.ACCES => error.AccessDenied,
949949
.AFNOSUPPORT => error.AddressFamilyNotSupported,
950950
.INVAL => error.ProtocolFamilyNotAvailable,
951951
.MFILE => error.ProcessFdQuotaExceeded,

src/coro/Frame.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Link = @import("minilib").Link;
55
const log = std.log.scoped(.coro);
66

77
pub const List = std.DoublyLinkedList;
8-
pub const stack_alignment = Fiber.stack_alignment;
8+
pub const stack_alignment: std.mem.Alignment = .fromByteUnits(Fiber.stack_alignment);
99
pub const Stack = Fiber.Stack;
1010

1111
pub const Status = enum(u8) {

src/minilib.zig

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,6 @@ pub const TimerQueue = @import("minilib/TimerQueue.zig");
66

77
const std = @import("std");
88

9-
/// Lets say you have a linked list:
10-
/// `const List = std.SinglyLinkedList(Link(SomeStruct, "member", .single));`
11-
/// You can now store a field `member: List.Node` in `SomeStruct` and retieve a `*SomeStruct` by calling `cast()` on `List.Node`.
12-
pub fn Link(comptime T: type, comptime field: []const u8, comptime container: enum { single, double }) type {
13-
return struct {
14-
pub fn cast(self: *@This()) *T {
15-
switch (container) {
16-
.single => {
17-
const node: *std.SinglyLinkedList(@This()).Node = @alignCast(@fieldParentPtr("data", self));
18-
return @fieldParentPtr(field, node);
19-
},
20-
.double => {
21-
const node: *std.DoublyLinkedList(@This()).Node = @alignCast(@fieldParentPtr("data", self));
22-
return @fieldParentPtr(field, node);
23-
},
24-
}
25-
}
26-
};
27-
}
28-
299
/// Returns the return type of a function
3010
pub fn ReturnType(comptime func: anytype) type {
3111
return @typeInfo(@TypeOf(func)).@"fn".return_type orelse @compileError("Return type of a generic function could not be deduced");

0 commit comments

Comments
 (0)