소스 검색

aya: make HashMap::new private

Alessandro Decina 4 년 전
부모
커밋
e28da8812e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      aya/src/maps/hash_map.rs

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

@@ -23,7 +23,7 @@ pub struct HashMap<T: Deref<Target = Map>, K, V> {
 }
 
 impl<T: Deref<Target = Map>, K: Pod, V: Pod> HashMap<T, K, V> {
-    pub fn new(map: T) -> Result<HashMap<T, K, V>, MapError> {
+    pub(crate) fn new(map: T) -> Result<HashMap<T, K, V>, MapError> {
         let map_type = map.obj.def.map_type;
 
         // validate the map definition