Skip to content

Commit 8aa85bb

Browse files
JonathanWoollett-Lightasomers
authored andcommitted
fix: clippy::size_of_ref
1 parent 4a83f8b commit 8aa85bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/socket/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ impl<'a> ControlMessage<'a> {
12981298
}
12991299
#[cfg(any(target_os = "android", target_os = "linux"))]
13001300
ControlMessage::AlgSetIv(iv) => {
1301-
mem::size_of_val(&iv) + iv.len()
1301+
mem::size_of::<&[u8]>() + iv.len()
13021302
},
13031303
#[cfg(any(target_os = "android", target_os = "linux"))]
13041304
ControlMessage::AlgSetOp(op) => {

0 commit comments

Comments
 (0)