mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-26 21:39:53 +00:00
Pull deserialization impls into their own file
This commit is contained in:
1 parent
44edfa5974
commit
1b1c605102
5 files changed
+455
-443
No files matched your search
+2
-2
@@ -305,7 +305,7 @@ impl de::Deserialize for Value {
|
||||
fn visit_seq<V>(&mut self, visitor: V) -> Result<Value, V::Error>
|
||||
where V: de::SeqVisitor,
|
||||
{
|
||||
let values = try!(de::VecVisitor::new().visit_seq(visitor));
|
||||
let values = try!(de::impls::VecVisitor::new().visit_seq(visitor));
|
||||
Ok(Value::Array(values))
|
||||
}
|
||||
|
||||
@@ -313,7 +313,7 @@ impl de::Deserialize for Value {
|
||||
fn visit_map<V>(&mut self, visitor: V) -> Result<Value, V::Error>
|
||||
where V: de::MapVisitor,
|
||||
{
|
||||
let values = try!(de::BTreeMapVisitor::new().visit_map(visitor));
|
||||
let values = try!(de::impls::BTreeMapVisitor::new().visit_map(visitor));
|
||||
Ok(Value::Object(values))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user