We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e36014 commit 060d03dCopy full SHA for 060d03d
src/sys/socket/mod.rs
@@ -543,6 +543,9 @@ impl ControlMessageOwned {
543
///
544
/// Returns `None` if the data may be unaligned. In that case use
545
/// `ControlMessageOwned::decode_from`.
546
+ // Clippy complains about the pointer alignment of `p`, not understanding
547
+ // that it's being fed to a function that can handle that.
548
+ #[allow(clippy::cast_ptr_alignment)]
549
unsafe fn decode_from(header: &cmsghdr) -> ControlMessageOwned
550
{
551
let p = CMSG_DATA(header);
0 commit comments