Skip to content

Commit 058699d

Browse files
committed
[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
1 parent abbdec3 commit 058699d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/std/src/net/addr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ impl SocketAddrV6 {
364364
sin6_addr: *ip.as_inner(),
365365
sin6_flowinfo: flowinfo,
366366
sin6_scope_id: scope_id,
367-
..unsafe { mem::zeroed() }
368367
},
369368
}
370369
}

0 commit comments

Comments
 (0)