Skip to content

Commit 67f8770

Browse files
Merge #1956
1956: fix: clippy::size_of_ref r=rtzoeller a=JonathanWoollett-Light Closes #1955 Co-authored-by: Jonathan <[email protected]>
2 parents ed0e859 + 4994723 commit 67f8770

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
@@ -1292,7 +1292,7 @@ impl<'a> ControlMessage<'a> {
12921292
}
12931293
#[cfg(any(target_os = "android", target_os = "linux"))]
12941294
ControlMessage::AlgSetIv(iv) => {
1295-
mem::size_of_val(&iv) + iv.len()
1295+
mem::size_of::<&[u8]>() + iv.len()
12961296
},
12971297
#[cfg(any(target_os = "android", target_os = "linux"))]
12981298
ControlMessage::AlgSetOp(op) => {

0 commit comments

Comments
 (0)