diff --git a/aya/src/maps/array/mod.rs b/aya/src/maps/array/mod.rs new file mode 100644 index 00000000..d297742e --- /dev/null +++ b/aya/src/maps/array/mod.rs @@ -0,0 +1,4 @@ +//! Array types. +mod program_array; + +pub use program_array::ProgramArray; diff --git a/aya/src/maps/program_array.rs b/aya/src/maps/array/program_array.rs similarity index 100% rename from aya/src/maps/program_array.rs rename to aya/src/maps/array/program_array.rs diff --git a/aya/src/maps/hash_map/hash_map.rs b/aya/src/maps/hash_map/hash_map.rs index a937d9fb..cd65636a 100644 --- a/aya/src/maps/hash_map/hash_map.rs +++ b/aya/src/maps/hash_map/hash_map.rs @@ -1,4 +1,3 @@ -//! Hash map types. use std::{ convert::TryFrom, marker::PhantomData, diff --git a/aya/src/maps/hash_map/mod.rs b/aya/src/maps/hash_map/mod.rs index dc895845..531fbfdd 100644 --- a/aya/src/maps/hash_map/mod.rs +++ b/aya/src/maps/hash_map/mod.rs @@ -1,3 +1,4 @@ +//! Hash map types. use std::mem; use crate::{ diff --git a/aya/src/maps/mod.rs b/aya/src/maps/mod.rs index b085efdb..ea013e93 100644 --- a/aya/src/maps/mod.rs +++ b/aya/src/maps/mod.rs @@ -40,15 +40,15 @@ use crate::{ Pod, }; +pub mod array; pub mod hash_map; mod map_lock; pub mod perf; -pub mod program_array; +pub use array::ProgramArray; pub use hash_map::{HashMap, PerCpuHashMap}; pub use map_lock::*; pub use perf::PerfEventArray; -pub use program_array::ProgramArray; #[derive(Error, Debug)] pub enum MapError {