Skip to content

Commit

Permalink
Merge #1956
Browse files Browse the repository at this point in the history
1956: fix: clippy::size_of_ref r=rtzoeller a=JonathanWoollett-Light

Closes #1955 

Co-authored-by: Jonathan <[email protected]>
  • Loading branch information
bors[bot] and JonathanWoollett-Light authored Jan 8, 2023
2 parents ed0e859 + 4994723 commit 67f8770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ impl<'a> ControlMessage<'a> {
}
#[cfg(any(target_os = "android", target_os = "linux"))]
ControlMessage::AlgSetIv(iv) => {
mem::size_of_val(&iv) + iv.len()
mem::size_of::<&[u8]>() + iv.len()
},
#[cfg(any(target_os = "android", target_os = "linux"))]
ControlMessage::AlgSetOp(op) => {
Expand Down

0 comments on commit 67f8770

Please sign in to comment.