Skip to content

Commit

Permalink
fix: Windows iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
mochalins committed Sep 30, 2024
1 parent e826121 commit 84219a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/serialport.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ pub const windows = @import("backend/windows.zig");

pub fn iterate() !Iterator {
switch (builtin.target.os.tag) {
.linux, .macos => return backend.iterate(),
else => return .{
._impl = try backend.iterate(),
},
.linux, .macos, .windows => return backend.iterate(),
else => @compileError("unsupported OS"),
}
}

Expand Down

0 comments on commit 84219a2

Please sign in to comment.