]> git.lizzy.rs Git - rust.git/commitdiff
Revert "[net] clippy: needless_update"
authorwcampbell <wcampbell1995@gmail.com>
Mon, 19 Oct 2020 11:22:45 +0000 (07:22 -0400)
committerwcampbell <wcampbell1995@gmail.com>
Mon, 19 Oct 2020 11:22:45 +0000 (07:22 -0400)
This reverts commit 058699d0a2fca02127761f014d0ecfce1c5541ec.

library/std/src/net/addr.rs

index 549192c9d30fc20105d18af73a103d32ef328ea0..63de87128340f38d4cb9ae01a63788dcdd8122ff 100644 (file)
@@ -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() }
             },
         }
     }