diff options
| author | wcampbell <wcampbell1995@gmail.com> | 2020-10-13 17:58:29 -0400 |
|---|---|---|
| committer | wcampbell <wcampbell1995@gmail.com> | 2020-10-13 17:58:29 -0400 |
| commit | 058699d0a2fca02127761f014d0ecfce1c5541ec (patch) | |
| tree | f14b9f30ba2f4e3655c3b93a88cdb832e141d8df /library/std/src/net | |
| parent | abbdec3be6cfce1175d0dc6737a2999cf43b530d (diff) | |
| download | rust-058699d0a2fca02127761f014d0ecfce1c5541ec.tar.gz rust-058699d0a2fca02127761f014d0ecfce1c5541ec.zip | |
[net] clippy: needless_update
warning: struct update has no effect, all the fields in the struct have
already been specified
--> library/std/src/net/addr.rs:367:19
|
367 | ..unsafe { mem::zeroed() }
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(clippy::needless_update)]` on by default
= help: for further information visit
https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
Diffstat (limited to 'library/std/src/net')
| -rw-r--r-- | library/std/src/net/addr.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/library/std/src/net/addr.rs b/library/std/src/net/addr.rs index 63de8712834..549192c9d30 100644 --- a/library/std/src/net/addr.rs +++ b/library/std/src/net/addr.rs @@ -364,7 +364,6 @@ impl SocketAddrV6 { sin6_addr: *ip.as_inner(), sin6_flowinfo: flowinfo, sin6_scope_id: scope_id, - ..unsafe { mem::zeroed() } }, } } |
