From e28da8812ed5d9e76e764fbc28312e8588aff2af Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Sat, 6 Mar 2021 09:57:10 +0000 Subject: [PATCH] aya: make HashMap::new private --- aya/src/maps/hash_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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