mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Bump serde to 0.7
This commit is contained in:
parent
7214fba45b
commit
46c505e47b
27 changed files with 370 additions and 375 deletions
|
@ -168,14 +168,14 @@ impl<K, V> DerefMut for FnvHashMap<K, V> {
|
|||
impl<K, V> Serialize for FnvHashMap<K, V> where K: Eq + Hash + Serialize, V: Serialize {
|
||||
#[inline]
|
||||
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer {
|
||||
serializer.visit_map(MapIteratorVisitor::new(self.iter(), Some(self.len())))
|
||||
serializer.serialize_map(MapIteratorVisitor::new(self.iter(), Some(self.len())))
|
||||
}
|
||||
}
|
||||
|
||||
impl<K, V> Deserialize for FnvHashMap<K, V> where K: Eq + Hash + Deserialize, V: Deserialize {
|
||||
#[inline]
|
||||
fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error> where D: Deserializer {
|
||||
deserializer.visit_map(FnvHashMapVisitor::new())
|
||||
deserializer.deserialize_map(FnvHashMapVisitor::new())
|
||||
}
|
||||
}
|
||||
/// A visitor that produces a map.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue