mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-08 01:41:06 +00:00
Simplify BTreeMapVisitor trait bounds
`Ord` implies `Eq`.
This commit is contained in:
1 file changed
+1
-1
@@ -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(),
|
||||||
|
|||||||
Reference in new issue
Block a user