diff --git a/aya/src/maps/program_array.rs b/aya/src/maps/program_array.rs index 0a647825..c69b09d7 100644 --- a/aya/src/maps/program_array.rs +++ b/aya/src/maps/program_array.rs @@ -17,7 +17,7 @@ pub struct ProgramArray> { } impl> ProgramArray { - pub fn new(map: T) -> Result, MapError> { + fn new(map: T) -> Result, MapError> { let map_type = map.obj.def.map_type; if map_type != BPF_MAP_TYPE_PROG_ARRAY as u32 { return Err(MapError::InvalidMapType {