about summary refs log tree commit diff
diff options
context:
space:
mode:
authorwcampbell <wcampbell1995@gmail.com>2020-10-19 07:22:45 -0400
committerwcampbell <wcampbell1995@gmail.com>2020-10-19 07:22:45 -0400
commit736c27ec0b2cd8c79fedd66e5487b47b8746b7c0 (patch)
tree3fe41842391afcf39a4785fc9d4d5ec27fdc523c
parentce04836327e6aebab6a834d89e7305d1b1be958b (diff)
downloadrust-736c27ec0b2cd8c79fedd66e5487b47b8746b7c0.tar.gz
rust-736c27ec0b2cd8c79fedd66e5487b47b8746b7c0.zip
Revert "[net] clippy: needless_update"
This reverts commit 058699d0a2fca02127761f014d0ecfce1c5541ec.
-rw-r--r--library/std/src/net/addr.rs1
1 files changed, 1 insertions, 0 deletions
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 @@ impl SocketAddrV6 {
                 sin6_addr: *ip.as_inner(),
                 sin6_flowinfo: flowinfo,
                 sin6_scope_id: scope_id,
+                ..unsafe { mem::zeroed() }
             },
         }
     }