Skip to content

Commit

Permalink
[net] clippy: needless_update
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wcampbell0x2a committed Oct 13, 2020
1 parent abbdec3 commit 058699d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/std/src/net/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ impl SocketAddrV6 {
sin6_addr: *ip.as_inner(),
sin6_flowinfo: flowinfo,
sin6_scope_id: scope_id,
..unsafe { mem::zeroed() }
},
}
}
Expand Down

0 comments on commit 058699d

Please sign in to comment.