diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-01-08 17:56:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 17:56:20 +0000 |
commit | 67f8770562b040181b0c37076898739a6dbafeca (patch) | |
tree | 70cbc033d15e1ada8d010a809e60d23ba5ed3adc /src | |
parent | ed0e859e41fb3611578f759ad2e32a9e98c5dfc0 (diff) | |
parent | 4994723da59c3656e25b2efdf699b5e0bbcc0adb (diff) | |
download | nix-67f8770562b040181b0c37076898739a6dbafeca.zip |
Merge #1956
1956: fix: clippy::size_of_ref r=rtzoeller a=JonathanWoollett-Light
Closes #1955
Co-authored-by: Jonathan <jonathanwoollettlight@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/socket/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index bcc28ae6..00c90560 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -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) => { |