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 authored and asomers committed Jan 17, 2023
1 parent 4a83f8b commit 8aa85bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/socket/mod.rs
Expand Up @@ -1298,7 +1298,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 8aa85bb

Please sign in to comment.