From 873691d050e5156c9f4fb271d6b13a25d0952564 Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Sat, 13 Feb 2021 09:55:27 +0000 Subject: [PATCH] Trim deps a bit more --- aya/Cargo.toml | 4 ++-- aya/src/sys/netlink.rs | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/aya/Cargo.toml b/aya/Cargo.toml index b2fb954f..46df8cd0 100644 --- a/aya/Cargo.toml +++ b/aya/Cargo.toml @@ -5,9 +5,9 @@ authors = ["Alessandro Decina "] 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"] } diff --git a/aya/src/sys/netlink.rs b/aya/src/sys/netlink.rs index dfc58052..7cfed4ae 100644 --- a/aya/src/sys/netlink.rs +++ b/aya/src/sys/netlink.rs @@ -209,10 +209,9 @@ impl NetlinkSocket { } } -#[derive(Debug)] struct NetlinkMessage { header: nlmsghdr, - data: Vec, + _data: Vec, error: Option, } @@ -246,7 +245,7 @@ impl NetlinkMessage { Ok(NetlinkMessage { header, - data, + _data: data, error, }) }