From 736c27ec0b2cd8c79fedd66e5487b47b8746b7c0 Mon Sep 17 00:00:00 2001 From: wcampbell Date: Mon, 19 Oct 2020 07:22:45 -0400 Subject: [PATCH] Revert "[net] clippy: needless_update" This reverts commit 058699d0a2fca02127761f014d0ecfce1c5541ec. --- library/std/src/net/addr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/std/src/net/addr.rs b/library/std/src/net/addr.rs index 549192c9d30..63de8712834 100644 --- a/library/std/src/net/addr.rs +++ b/library/std/src/net/addr.rs @@ -364,6 +364,7 @@ pub fn new(ip: Ipv6Addr, port: u16, flowinfo: u32, scope_id: u32) -> SocketAddrV sin6_addr: *ip.as_inner(), sin6_flowinfo: flowinfo, sin6_scope_id: scope_id, + ..unsafe { mem::zeroed() } }, } }