aya: make HashMap::new private

pull/1/head
Alessandro Decina 4 years ago
parent 24f7c37158
commit e28da8812e

@ -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> { 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; let map_type = map.obj.def.map_type;
// validate the map definition // validate the map definition

Loading…
Cancel
Save