diff --git a/src/buffer.rs b/src/buffer.rs index 3801583..0d62cbd 100644 --- a/src/buffer.rs +++ b/src/buffer.rs @@ -103,7 +103,6 @@ pub const NETLINK_HEADER_LEN: usize = PAYLOAD.start; /// Note that in this second example we don't call /// [`new_checked()`](struct.NetlinkBuffer.html#method.new_checked) because the length field is /// initialized to 0, so `new_checked()` would return an error. -#[non_exhaustive] pub struct NetlinkBuffer { pub buffer: T, } diff --git a/src/error.rs b/src/error.rs index f7951f7..6b1aee9 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,7 +12,6 @@ const PAYLOAD: Rest = 4..; const ERROR_HEADER_LEN: usize = PAYLOAD.start; #[derive(Debug, PartialEq, Eq, Clone)] -#[non_exhaustive] pub struct ErrorBuffer { buffer: T, } @@ -88,7 +87,6 @@ impl + AsMut<[u8]>> ErrorBuffer { /// /// [RFC 3549 section 2.3.2.2]: https://datatracker.ietf.org/doc/html/rfc3549#section-2.3.2.2 #[derive(Debug, Default, Clone, PartialEq, Eq)] -#[non_exhaustive] pub struct ErrorMessage { /// The error code. /// diff --git a/src/header.rs b/src/header.rs index 22e2445..20cc01a 100644 --- a/src/header.rs +++ b/src/header.rs @@ -20,7 +20,6 @@ use crate::{buffer::NETLINK_HEADER_LEN, Emitable, NetlinkBuffer, Parseable}; /// +----------------+----------------+----------------+----------------+ /// ``` #[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, Default)] -#[non_exhaustive] pub struct NetlinkHeader { /// Length of the netlink packet, including the header and the payload pub length: u32, diff --git a/src/message.rs b/src/message.rs index 4bc7dda..19c34f8 100644 --- a/src/message.rs +++ b/src/message.rs @@ -14,7 +14,6 @@ use crate::{ /// Represent a netlink message. #[derive(Debug, PartialEq, Eq, Clone)] -#[non_exhaustive] pub struct NetlinkMessage { /// Message header (this is common to all the netlink protocols) pub header: NetlinkHeader, diff --git a/src/payload.rs b/src/payload.rs index 34c6a33..3d7839b 100644 --- a/src/payload.rs +++ b/src/payload.rs @@ -16,7 +16,6 @@ pub const NLMSG_OVERRUN: u16 = 4; pub const NLMSG_ALIGNTO: u16 = 4; #[derive(Debug, PartialEq, Eq, Clone)] -#[non_exhaustive] pub enum NetlinkPayload { Done(DoneMessage), Error(ErrorMessage),