Pull the hashmap Serialize/Deserialize impl into a module

This commit is contained in:
Gwilym Inzani 2024-10-30 10:36:36 +00:00
parent b2d0e93f8c
commit 69219e3d73

View file

@ -7,6 +7,9 @@ use serde::{
use crate::{ClonableAllocator, HashMap};
mod hashmap {
use super::*;
impl<K: Serialize, V: Serialize, ALLOCATOR: ClonableAllocator> Serialize
for HashMap<K, V, ALLOCATOR>
{
@ -74,3 +77,4 @@ where
Ok(map)
}
}
}