diff --git a/aya/src/maps/hash_map.rs b/aya/src/maps/hash_map.rs index a3776077..f9f48ae5 100644 --- a/aya/src/maps/hash_map.rs +++ b/aya/src/maps/hash_map.rs @@ -23,7 +23,7 @@ pub struct HashMap, K, V> { } impl, K: Pod, V: Pod> HashMap { - pub fn new(map: T) -> Result, MapError> { + pub(crate) fn new(map: T) -> Result, MapError> { let map_type = map.obj.def.map_type; // validate the map definition