From 3fddc8165c6e2c28c4fda19e72156b640da4a0c7 Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Sat, 6 Mar 2021 09:48:22 +0000 Subject: [PATCH] aya: make ProgramArray::new private --- aya/src/maps/program_array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {