Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.name = .aio,
.fingerprint = 0xdf66d422e46d3277,
.version = "0.1.1-dev.1",
.minimum_zig_version = "0.14.0",
.minimum_zig_version = "0.15.1",
.dependencies = .{},
.paths = .{
"build.zig",
Expand Down
4 changes: 2 additions & 2 deletions src/io/linux.zig
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ pub const IO = struct {
// 2) potentially queues more SQEs to take advantage more of the next flush_submissions().
while (self.completed.pop()) |completion| {
if (completion.operation == .timeout and
completion.operation.timeout.timespec.tv_sec == 0 and
completion.operation.timeout.timespec.tv_nsec == 0)
completion.operation.timeout.timespec.sec == 0 and
completion.operation.timeout.timespec.nsec == 0)
{
// Zero-duration timeouts are a special case, and aren't listed in `awaiting`.
maybe(self.awaiting.empty());
Expand Down
6 changes: 3 additions & 3 deletions src/list.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ pub fn DoublyLinkedListType(
comptime field_back_enum: std.meta.FieldEnum(Node),
comptime field_next_enum: std.meta.FieldEnum(Node),
) type {
assert(@typeInfo(Node) == .Struct);
assert(@typeInfo(Node) == .@"struct");
assert(field_back_enum != field_next_enum);
assert(std.meta.FieldType(Node, field_back_enum) == ?*Node);
assert(std.meta.FieldType(Node, field_next_enum) == ?*Node);
assert(field_back_enum == ?*Node);
assert(field_next_enum == ?*Node);

const field_back = @tagName(field_back_enum);
const field_next = @tagName(field_next_enum);
Expand Down