aboutsummaryrefslogtreecommitdiff
path: root/lib/std/net.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-08-10 17:38:46 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-08-10 17:38:46 -0700
commite667884f9ba21c7cdec7581d89b9a9f622c5ffb9 (patch)
treed118f31cf814fe86838f950ecbbf629b67be0fc0 /lib/std/net.zig
parente25168d01be35bea2c8e811fb5fddab847ae6938 (diff)
downloadzig-e667884f9ba21c7cdec7581d89b9a9f622c5ffb9.tar.gz
zig-e667884f9ba21c7cdec7581d89b9a9f622c5ffb9.zip
std.net.Stream.Reader: init size_err
This code knows in advance that stat() should never be called. closes #24754
Diffstat (limited to 'lib/std/net.zig')
-rw-r--r--lib/std/net.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig
index 45abc42568..0e0bae3c03 100644
--- a/lib/std/net.zig
+++ b/lib/std/net.zig
@@ -2064,6 +2064,7 @@ pub const Stream = struct {
.file = .{ .handle = net_stream.handle },
.mode = .streaming,
.seek_err = error.Unseekable,
+ .size_err = error.Streaming,
},
};
}