mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Pull the hashmap Serialize/Deserialize impl into a module
This commit is contained in:
parent
b2d0e93f8c
commit
69219e3d73
|
@ -7,6 +7,9 @@ use serde::{
|
||||||
|
|
||||||
use crate::{ClonableAllocator, HashMap};
|
use crate::{ClonableAllocator, HashMap};
|
||||||
|
|
||||||
|
mod hashmap {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
impl<K: Serialize, V: Serialize, ALLOCATOR: ClonableAllocator> Serialize
|
impl<K: Serialize, V: Serialize, ALLOCATOR: ClonableAllocator> Serialize
|
||||||
for HashMap<K, V, ALLOCATOR>
|
for HashMap<K, V, ALLOCATOR>
|
||||||
{
|
{
|
||||||
|
@ -74,3 +77,4 @@ where
|
||||||
Ok(map)
|
Ok(map)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue