mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-27 00:47:54 +00:00
wip
This commit is contained in:
+6
-6
@@ -1,6 +1,5 @@
|
||||
use std::collections::{HashMap, BTreeMap};
|
||||
use std::collections::hash_map::Hasher;
|
||||
use std::hash::Hash;
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::num::FromPrimitive;
|
||||
use std::str;
|
||||
|
||||
@@ -595,11 +594,12 @@ tuple_impls! {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
struct HashMapVisitor<K, V>;
|
||||
struct HashMapVisitor<K, V, H>;
|
||||
|
||||
impl<K, V> Visitor for HashMapVisitor<K, V>
|
||||
where K: Deserialize + Eq + Hash,
|
||||
V: Deserialize
|
||||
impl<K, V, H> Visitor for HashMapVisitor<K, V, H>
|
||||
where K: Deserialize + Eq + Hash<H>,
|
||||
V: Deserialize,
|
||||
H: Hasher,
|
||||
{
|
||||
type Value = HashMap<K, V>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user