@@ -5,9 +5,9 @@ authors = ["Alessandro Decina <[email protected]>"]
edition = "2018"
[dependencies]
-libc = { version = "0.2", features = ["extra_traits"] }
+libc = { version = "0.2" }
thiserror = "1"
-object = "0.23"
+object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf"] }
bytes = "1"
lazy_static = "1"
parking_lot = { version = "0.11.1", features = ["send_guard"] }
@@ -209,10 +209,9 @@ impl NetlinkSocket {
}
-#[derive(Debug)]
struct NetlinkMessage {
header: nlmsghdr,
- data: Vec<u8>,
+ _data: Vec<u8>,
error: Option<nlmsgerr>,
@@ -246,7 +245,7 @@ impl NetlinkMessage {
Ok(NetlinkMessage {
header,
- data,
+ _data: data,
error,
})