Skip to content

Commit

Permalink
fix: clippy::size_of_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWoollett-Light committed Dec 31, 2022
1 parent ed0e859 commit 4994723
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 4994723

Please sign in to comment.