We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1be2b7 + 04ae7dc commit 4325b64Copy full SHA for 4325b64
src/net.zig
@@ -78,8 +78,7 @@ pub const IP = union(enum) {
78
pub fn ipToBytes(address: *const std.net.Address) []const u8 {
79
return switch (address.any.family) {
80
std.posix.AF.INET => {
81
- const b = std.mem.asBytes(&address.in.sa.addr).*;
82
- return &b;
+ return std.mem.asBytes(&address.in.sa.addr);
83
},
84
std.posix.AF.INET6 => &address.in6.sa.addr,
85
else => unreachable,
0 commit comments