mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 23:01:01 +00:00
fix(serde): Rename visit_struct_key to visit_struct_field
This is more consistent with the rest of the serde naming patterns.
This commit is contained in:
+1
-1
@@ -407,7 +407,7 @@ pub trait Deserializer {
|
|||||||
/// This allows deserializers to choose between &str, usize, or &[u8] to properly deserialize a
|
/// This allows deserializers to choose between &str, usize, or &[u8] to properly deserialize a
|
||||||
/// struct key.
|
/// struct key.
|
||||||
#[inline]
|
#[inline]
|
||||||
fn visit_struct_key<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error>
|
fn visit_struct_field<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error>
|
||||||
where V: Visitor,
|
where V: Visitor,
|
||||||
{
|
{
|
||||||
self.visit(visitor)
|
self.visit(visitor)
|
||||||
|
|||||||
@@ -917,7 +917,7 @@ fn deserialize_field_visitor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
deserializer.visit_struct_key(__FieldVisitor::<D>{ phantom: PhantomData })
|
deserializer.visit_struct_field(__FieldVisitor::<D>{ phantom: PhantomData })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
).unwrap();
|
).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user