Simplify BTreeMapVisitor trait bounds

`Ord` implies `Eq`.
This commit is contained in:
David Tolnay 2016-08-17 23:11:35 -04:00
parent e0c9bd4b87
commit d98172f330
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

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