Merge pull request #499 from serde-rs/ord

Simplify BTreeMapVisitor trait bounds
This commit is contained in:
David Tolnay 2016-08-18 15:44:03 -04:00 committed by GitHub
commit a4eb9d5788

View File

@ -791,7 +791,7 @@ macro_rules! map_impl {
#[cfg(any(feature = "std", feature = "collections"))] #[cfg(any(feature = "std", feature = "collections"))]
map_impl!( map_impl!(
BTreeMap<K, V>, BTreeMap<K, V>,
BTreeMapVisitor<K: Deserialize + Eq + Ord, BTreeMapVisitor<K: Deserialize + Ord,
V: Deserialize>, V: Deserialize>,
visitor, visitor,
BTreeMap::new(), BTreeMap::new(),