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.
1 parent d1be2b7 commit 04ae7dcCopy full SHA for 04ae7dc
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