Skip to content

Commit 8a882f0

Browse files
committed
Revert "[net] clippy: needless_update"
This reverts commit 058699d.
1 parent ecca6be commit 8a882f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

std/src/net/addr.rs

Lines changed: 1 addition & 0 deletions
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)