Explorar o código

aya: make ProgramArray::new private

Alessandro Decina %!s(int64=4) %!d(string=hai) anos
pai
achega
3fddc8165c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      aya/src/maps/program_array.rs

+ 1 - 1
aya/src/maps/program_array.rs

@@ -17,7 +17,7 @@ pub struct ProgramArray<T: Deref<Target = Map>> {
 }
 
 impl<T: Deref<Target = Map>> ProgramArray<T> {
-    pub fn new(map: T) -> Result<ProgramArray<T>, MapError> {
+    fn new(map: T) -> Result<ProgramArray<T>, MapError> {
         let map_type = map.obj.def.map_type;
         if map_type != BPF_MAP_TYPE_PROG_ARRAY as u32 {
             return Err(MapError::InvalidMapType {