Skip to content

Commit a76010a

Browse files
committed
[API break] Remove re-exporting
Signed-off-by: Gris Ge <[email protected]>
1 parent 55717f2 commit a76010a

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

src/buffer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// SPDX-License-Identifier: MIT
22

33
use byteorder::{ByteOrder, NativeEndian};
4+
use netlink_packet_utils::DecodeError;
45

5-
use crate::{DecodeError, Field, Rest};
6+
use crate::{Field, Rest};
67

78
const LENGTH: Field = 0..4;
89
const MESSAGE_TYPE: Field = 4..6;

src/error.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
use std::{fmt, io, mem::size_of};
44

55
use byteorder::{ByteOrder, NativeEndian};
6+
use netlink_packet_utils::DecodeError;
67

7-
use crate::{DecodeError, Emitable, Field, Parseable, Rest};
8+
use crate::{Emitable, Field, Parseable, Rest};
89

910
const CODE: Field = 0..4;
1011
const PAYLOAD: Rest = 4..;

src/header.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: MIT
22

3-
use crate::{
4-
buffer::NETLINK_HEADER_LEN, DecodeError, Emitable, NetlinkBuffer, Parseable,
5-
};
3+
use netlink_packet_utils::DecodeError;
4+
5+
use crate::{buffer::NETLINK_HEADER_LEN, Emitable, NetlinkBuffer, Parseable};
66

77
/// A Netlink header representation. A netlink header has the following
88
/// structure:

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,5 @@ pub use self::message::*;
265265
pub mod constants;
266266
pub use self::constants::*;
267267

268-
pub use self::utils::errors::*;
269268
pub(crate) use self::utils::traits::*;
270269
pub(crate) use netlink_packet_utils as utils;

src/message.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
// SPDX-License-Identifier: MIT
22

3-
use anyhow::Context;
43
use std::fmt::Debug;
54

5+
use anyhow::Context;
6+
use netlink_packet_utils::DecodeError;
7+
68
use crate::{
79
payload::{NLMSG_DONE, NLMSG_ERROR, NLMSG_NOOP, NLMSG_OVERRUN},
8-
AckMessage, DecodeError, Emitable, ErrorBuffer, ErrorMessage,
9-
NetlinkBuffer, NetlinkDeserializable, NetlinkHeader, NetlinkPayload,
10-
NetlinkSerializable, Parseable,
10+
AckMessage, Emitable, ErrorBuffer, ErrorMessage, NetlinkBuffer,
11+
NetlinkDeserializable, NetlinkHeader, NetlinkPayload, NetlinkSerializable,
12+
Parseable,
1113
};
1214

1315
/// Represent a netlink message.

0 commit comments

Comments
 (0)