mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 18:21:01 +00:00
Fix tests, make Deserializer::visit take a value not a reference
This commit is contained in:
@@ -68,7 +68,7 @@ impl de::Deserialize for HttpProtocol {
|
||||
fn deserialize<
|
||||
S: Deserializer,
|
||||
>(state: &mut S) -> Result<HttpProtocol, S::Error> {
|
||||
state.visit(&mut de::PrimitiveVisitor::new())
|
||||
state.visit(de::PrimitiveVisitor::new())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ impl de::Deserialize for HttpMethod {
|
||||
fn deserialize<
|
||||
S: de::Deserializer,
|
||||
>(state: &mut S) -> Result<HttpMethod, S::Error> {
|
||||
state.visit(&mut de::PrimitiveVisitor::new())
|
||||
state.visit(de::PrimitiveVisitor::new())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ impl de::Deserialize for CacheStatus {
|
||||
fn deserialize<
|
||||
S: de::Deserializer,
|
||||
>(state: &mut S) -> Result<CacheStatus, S::Error> {
|
||||
state.visit(&mut de::PrimitiveVisitor::new())
|
||||
state.visit(de::PrimitiveVisitor::new())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ impl de::Deserialize for OriginProtocol {
|
||||
fn deserialize<
|
||||
S: de::Deserializer,
|
||||
>(state: &mut S) -> Result<OriginProtocol, S::Error> {
|
||||
state.visit(&mut de::PrimitiveVisitor::new())
|
||||
state.visit(de::PrimitiveVisitor::new())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -249,7 +249,7 @@ impl de::Deserialize for ZonePlan {
|
||||
fn deserialize<
|
||||
S: de::Deserializer,
|
||||
>(state: &mut S) -> Result<ZonePlan, S::Error> {
|
||||
state.visit(&mut de::PrimitiveVisitor::new())
|
||||
state.visit(de::PrimitiveVisitor::new())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -542,7 +542,7 @@ impl de::Deserialize for Country {
|
||||
fn deserialize<
|
||||
S: de::Deserializer,
|
||||
>(state: &mut S) -> Result<Country, S::Error> {
|
||||
state.visit(&mut de::PrimitiveVisitor::new())
|
||||
state.visit(de::PrimitiveVisitor::new())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user