mirror of
https://gitee.com/openharmony/third_party_rust_nix
synced 2024-11-23 07:20:09 +00:00
fix: clippy::size_of_ref
This commit is contained in:
parent
4a83f8b8b5
commit
8aa85bbf27
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user