fix: clippy::size_of_ref

This commit is contained in:
Jonathan 2022-12-31 23:16:46 +00:00 committed by Alan Somers
parent 4a83f8b8b5
commit 8aa85bbf27

View File

@ -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) => {