Skip to content

Commit 0241ea4

Browse files
jeff-hinercathay4t
authored andcommitted
Remove non_exhaustive annotation from Header structs
1 parent 70b8637 commit 0241ea4

File tree

8 files changed

+0
-8
lines changed

8 files changed

+0
-8
lines changed

src/rtnl/address/message.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pub struct AddressMessage {
1616
}
1717

1818
#[derive(Debug, PartialEq, Eq, Clone, Default)]
19-
#[non_exhaustive]
2019
pub struct AddressHeader {
2120
pub family: u8,
2221
pub prefix_len: u8,

src/rtnl/link/header.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use crate::{LinkMessageBuffer, LINK_HEADER_LEN};
2727
///
2828
/// `LinkHeader` exposes all these fields except for the "reserved" one.
2929
#[derive(Debug, PartialEq, Eq, Clone, Default)]
30-
#[non_exhaustive]
3130
pub struct LinkHeader {
3231
/// Address family: one of the `AF_*` constants.
3332
pub interface_family: u8,

src/rtnl/neighbour/header.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use crate::{NeighbourMessageBuffer, NEIGHBOUR_HEADER_LEN};
2222
///
2323
/// `NeighbourHeader` exposes all these fields.
2424
#[derive(Debug, PartialEq, Eq, Clone, Default)]
25-
#[non_exhaustive]
2625
pub struct NeighbourHeader {
2726
pub family: u8,
2827
pub ifindex: u32,

src/rtnl/neighbour_table/header.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use netlink_packet_utils::{
88
use super::buffer::{NeighbourTableMessageBuffer, NEIGHBOUR_TABLE_HEADER_LEN};
99

1010
#[derive(Debug, PartialEq, Eq, Clone)]
11-
#[non_exhaustive]
1211
pub struct NeighbourTableHeader {
1312
pub family: u8,
1413
}

src/rtnl/nsid/header.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use netlink_packet_utils::{
88
use super::{NsidMessageBuffer, NSID_HEADER_LEN};
99

1010
#[derive(Debug, PartialEq, Eq, Clone, Default)]
11-
#[non_exhaustive]
1211
pub struct NsidHeader {
1312
pub rtgen_family: u8,
1413
}

src/rtnl/route/header.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ impl Default for RouteFlags {
8484
/// }
8585
/// ```
8686
#[derive(Debug, PartialEq, Eq, Hash, Clone, Default)]
87-
#[non_exhaustive]
8887
pub struct RouteHeader {
8988
/// Address family of the route: either [`AF_INET`] for IPv4 prefixes, or
9089
/// [`AF_INET6`] for IPv6 prefixes.

src/rtnl/rule/header.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ impl Default for RuleFlags {
3030
// see https://github.com/torvalds/linux/blob/master/include/uapi/linux/fib_rules.h
3131
// see https://github.com/torvalds/linux/blob/master/include/net/fib_rules.h
3232
#[derive(Debug, PartialEq, Eq, Clone, Default)]
33-
#[non_exhaustive]
3433
pub struct RuleHeader {
3534
/// Address family: one of the `AF_*` constants.
3635
pub family: u8,

src/rtnl/tc/message.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ impl TcMessage {
4343
}
4444

4545
#[derive(Debug, PartialEq, Eq, Clone, Default)]
46-
#[non_exhaustive]
4746
pub struct TcHeader {
4847
pub family: u8,
4948
// Interface index

0 commit comments

Comments
 (0)