From 141c00fc69eed6734059c489ffbbe3a0ec2d52ea Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Thu, 2 Oct 2025 23:32:24 -0400 Subject: [PATCH] maps: add newline between doc and imports --- aya/src/maps/array/mod.rs | 1 + aya/src/maps/bloom_filter.rs | 1 + aya/src/maps/lpm_trie.rs | 1 + aya/src/maps/perf/perf_event_array.rs | 1 + aya/src/maps/queue.rs | 1 + aya/src/maps/stack.rs | 1 + aya/src/maps/stack_trace.rs | 1 + aya/src/maps/xdp/dev_map_hash.rs | 2 +- 8 files changed, 8 insertions(+), 1 deletion(-) diff --git a/aya/src/maps/array/mod.rs b/aya/src/maps/array/mod.rs index 1b2768dc..15974d27 100644 --- a/aya/src/maps/array/mod.rs +++ b/aya/src/maps/array/mod.rs @@ -1,4 +1,5 @@ //! Array types. + #[expect(clippy::module_inception)] mod array; mod per_cpu_array; diff --git a/aya/src/maps/bloom_filter.rs b/aya/src/maps/bloom_filter.rs index 77b376a5..c5c7e3f6 100644 --- a/aya/src/maps/bloom_filter.rs +++ b/aya/src/maps/bloom_filter.rs @@ -1,4 +1,5 @@ //! A Bloom Filter. + use std::{ borrow::{Borrow, BorrowMut}, marker::PhantomData, diff --git a/aya/src/maps/lpm_trie.rs b/aya/src/maps/lpm_trie.rs index e6208efe..7ec495d5 100644 --- a/aya/src/maps/lpm_trie.rs +++ b/aya/src/maps/lpm_trie.rs @@ -1,4 +1,5 @@ //! A LPM Trie. + use std::{ borrow::{Borrow, BorrowMut}, marker::PhantomData, diff --git a/aya/src/maps/perf/perf_event_array.rs b/aya/src/maps/perf/perf_event_array.rs index 91618fe4..994daa72 100644 --- a/aya/src/maps/perf/perf_event_array.rs +++ b/aya/src/maps/perf/perf_event_array.rs @@ -1,6 +1,7 @@ //! A map that can be used to receive events from eBPF programs using the linux [`perf`] API //! //! [`perf`]: https://perf.wiki.kernel.org/index.php/Main_Page. + use std::{ borrow::{Borrow, BorrowMut}, ops::Deref as _, diff --git a/aya/src/maps/queue.rs b/aya/src/maps/queue.rs index 225a5ec0..d2db245c 100644 --- a/aya/src/maps/queue.rs +++ b/aya/src/maps/queue.rs @@ -1,4 +1,5 @@ //! A FIFO queue. + use std::{ borrow::{Borrow, BorrowMut}, marker::PhantomData, diff --git a/aya/src/maps/stack.rs b/aya/src/maps/stack.rs index e62af980..010216c8 100644 --- a/aya/src/maps/stack.rs +++ b/aya/src/maps/stack.rs @@ -1,4 +1,5 @@ //! A LIFO stack. + use std::{ borrow::{Borrow, BorrowMut}, marker::PhantomData, diff --git a/aya/src/maps/stack_trace.rs b/aya/src/maps/stack_trace.rs index 6b031bce..0c6a49c9 100644 --- a/aya/src/maps/stack_trace.rs +++ b/aya/src/maps/stack_trace.rs @@ -1,6 +1,7 @@ //! A hash map of kernel or user space stack traces. //! //! See [`StackTraceMap`] for documentation and examples. + use std::{ borrow::{Borrow, BorrowMut}, fs, io, mem, diff --git a/aya/src/maps/xdp/dev_map_hash.rs b/aya/src/maps/xdp/dev_map_hash.rs index 4fff010c..90528ecb 100644 --- a/aya/src/maps/xdp/dev_map_hash.rs +++ b/aya/src/maps/xdp/dev_map_hash.rs @@ -1,4 +1,4 @@ -//! An hashmap of network devices. +//! A hashmap of network devices. use std::{ borrow::{Borrow, BorrowMut},