Skip to content

Commit c82345c

Browse files
authored
zig: fix debug crash in uws.Response (#20202)
1 parent 817d046 commit c82345c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/deps/uws/Response.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
/// - Offers safe casting between Zig and C representations
1111
/// - Maintains zero-cost abstractions over the underlying µWebSockets API
1212
pub fn NewResponse(ssl_flag: i32) type {
13-
return opaque {
13+
// making this opaque crashes Zig 0.14.0 when built in Debug or ReleaseSafe
14+
return struct {
1415
const Response = @This();
1516
const ssl = ssl_flag == 1;
1617

0 commit comments

Comments
 (0)