mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
std.http.Client: remove invalid use of refAllDecls
This commit is contained in:
parent
accbba3cd8
commit
63acc856c1
@ -1661,18 +1661,3 @@ pub fn fetch(client: *Client, options: FetchOptions) !FetchResult {
|
||||
.status = req.response.status,
|
||||
};
|
||||
}
|
||||
|
||||
test {
|
||||
const native_endian = comptime builtin.cpu.arch.endian();
|
||||
if (builtin.zig_backend == .stage2_llvm and native_endian == .big) {
|
||||
// https://github.com/ziglang/zig/issues/13782
|
||||
return error.SkipZigTest;
|
||||
}
|
||||
|
||||
if (builtin.os.tag == .wasi) return error.SkipZigTest;
|
||||
|
||||
if (builtin.zig_backend == .stage2_x86_64 and
|
||||
!comptime std.Target.x86.featureSetHas(builtin.cpu.features, .avx)) return error.SkipZigTest;
|
||||
|
||||
std.testing.refAllDecls(@This());
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ pub const Address = extern union {
|
||||
@memset(&sock_addr.path, 0);
|
||||
@memcpy(sock_addr.path[0..path.len], path);
|
||||
|
||||
return Address{ .un = sock_addr };
|
||||
return .{ .un = sock_addr };
|
||||
}
|
||||
|
||||
/// Returns the port in native endian.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user