Skip to content

Commit 736c27e

Browse files
committed
Revert "[net] clippy: needless_update"
This reverts commit 058699d.
1 parent ce04836 commit 736c27e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/net/addr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ impl SocketAddrV6 {
364364
sin6_addr: *ip.as_inner(),
365365
sin6_flowinfo: flowinfo,
366366
sin6_scope_id: scope_id,
367+
..unsafe { mem::zeroed() }
367368
},
368369
}
369370
}

0 commit comments

Comments
 (0)