diff --git a/aya/src/maps/bloom_filter.rs b/aya/src/maps/bloom_filter.rs index ca295531..8e6e521e 100644 --- a/aya/src/maps/bloom_filter.rs +++ b/aya/src/maps/bloom_filter.rs @@ -32,7 +32,6 @@ use crate::{ /// /// # Ok::<(), aya::EbpfError>(()) /// ``` - #[doc(alias = "BPF_MAP_TYPE_BLOOM_FILTER")] #[derive(Debug)] pub struct BloomFilter { diff --git a/aya/src/maps/lpm_trie.rs b/aya/src/maps/lpm_trie.rs index e9a4b0b5..f7efd87f 100644 --- a/aya/src/maps/lpm_trie.rs +++ b/aya/src/maps/lpm_trie.rs @@ -44,7 +44,6 @@ use crate::{ /// assert_eq!(value, 2); /// # Ok::<(), aya::EbpfError>(()) /// ``` - #[doc(alias = "BPF_MAP_TYPE_LPM_TRIE")] #[derive(Debug)] pub struct LpmTrie { diff --git a/test/integration-ebpf/build.rs b/test/integration-ebpf/build.rs index d339e195..80088e10 100644 --- a/test/integration-ebpf/build.rs +++ b/test/integration-ebpf/build.rs @@ -14,7 +14,6 @@ use xtask::AYA_BUILD_INTEGRATION_BPF; /// which would likely mean far too much cache invalidation. /// /// [bindeps]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html?highlight=feature#artifact-dependencies - fn main() { println!("cargo:rerun-if-env-changed={}", AYA_BUILD_INTEGRATION_BPF); diff --git a/test/integration-test/build.rs b/test/integration-test/build.rs index 128f25e4..8e53b5a9 100644 --- a/test/integration-test/build.rs +++ b/test/integration-test/build.rs @@ -36,7 +36,6 @@ use xtask::{exec, AYA_BUILD_INTEGRATION_BPF, LIBBPF_DIR}; /// runtime because the stubs are inadequate for actually running the tests. /// /// [bindeps]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html?highlight=feature#artifact-dependencies - fn main() { println!("cargo:rerun-if-env-changed={}", AYA_BUILD_INTEGRATION_BPF); diff --git a/test/integration-test/src/tests/xdp.rs b/test/integration-test/src/tests/xdp.rs index fb137d89..5a9859d5 100644 --- a/test/integration-test/src/tests/xdp.rs +++ b/test/integration-test/src/tests/xdp.rs @@ -1,4 +1,4 @@ -use std::{ffi::CStr, mem::MaybeUninit, net::UdpSocket, num::NonZeroU32, time::Duration}; +use std::{mem::MaybeUninit, net::UdpSocket, num::NonZeroU32, time::Duration}; use aya::{ maps::{Array, CpuMap, XskMap}, @@ -41,9 +41,7 @@ fn af_xdp() { }; let mut iface = IfInfo::invalid(); - iface - .from_name(CStr::from_bytes_with_nul(b"lo\0").unwrap()) - .unwrap(); + iface.from_name(c"lo").unwrap(); let sock = Socket::with_shared(&iface, &umem).unwrap(); let mut fq_cq = umem.fq_cq(&sock).unwrap(); // Fill Queue / Completion Queue