Remove collections
feature flag and disable VecMap, which is unstable
This commit is contained in:
parent
7622255d6f
commit
9a4ba047c4
@ -1,4 +1,4 @@
|
|||||||
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, VecMap};
|
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
|
||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
use std::num::FromPrimitive;
|
use std::num::FromPrimitive;
|
||||||
@ -572,6 +572,8 @@ impl<K, V> Deserialize for HashMap<K, V>
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// FIXME: `VecMap` is unstable.
|
||||||
|
/*
|
||||||
pub struct VecMapVisitor<V> {
|
pub struct VecMapVisitor<V> {
|
||||||
marker: PhantomData<VecMap<V>>,
|
marker: PhantomData<VecMap<V>>,
|
||||||
}
|
}
|
||||||
@ -623,6 +625,7 @@ impl<V> Deserialize for VecMap<V>
|
|||||||
deserializer.visit(VecMapVisitor::new())
|
deserializer.visit(VecMapVisitor::new())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//! leaving serde to perform roughly the same speed as a hand written serializer for a specific
|
//! leaving serde to perform roughly the same speed as a hand written serializer for a specific
|
||||||
//! type.
|
//! type.
|
||||||
|
|
||||||
#![feature(collections, core)]
|
#![feature(core)]
|
||||||
|
|
||||||
|
|
||||||
pub use ser::{Serialize, Serializer};
|
pub use ser::{Serialize, Serializer};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, VecMap};
|
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
|
||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
use std::path;
|
use std::path;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
@ -410,6 +410,8 @@ impl<K, V> Serialize for HashMap<K, V>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: `VecMap` is unstable.
|
||||||
|
/*
|
||||||
impl<V> Serialize for VecMap<V>
|
impl<V> Serialize for VecMap<V>
|
||||||
where V: Serialize,
|
where V: Serialize,
|
||||||
{
|
{
|
||||||
@ -420,6 +422,7 @@ impl<V> Serialize for VecMap<V>
|
|||||||
serializer.visit_map(MapIteratorVisitor::new(self.iter(), Some(self.len())))
|
serializer.visit_map(MapIteratorVisitor::new(self.iter(), Some(self.len())))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user