mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-11 17:21:03 +00:00
feat(codegen): Remove {Ser,Deser}ializer::format
This feature has never been used, and it's complicating the implementation of #207. We could restore this functionality if there is ever interest in it. Closes #211.
This commit is contained in:
@@ -424,15 +424,6 @@ pub trait Deserializer {
|
||||
{
|
||||
self.deserialize(visitor)
|
||||
}
|
||||
|
||||
/// Specify a format string for the deserializer.
|
||||
///
|
||||
/// The deserializer format is used to determine which format
|
||||
/// specific field attributes should be used with the
|
||||
/// deserializer.
|
||||
fn format() -> &'static str {
|
||||
""
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -327,14 +327,6 @@ pub trait Serializer {
|
||||
{
|
||||
self.serialize_struct_elt(key, value)
|
||||
}
|
||||
|
||||
/// Specify a format string for the serializer.
|
||||
///
|
||||
/// The serializer format is used to determine which format
|
||||
/// specific field attributes should be used with the serializer.
|
||||
fn format() -> &'static str {
|
||||
""
|
||||
}
|
||||
}
|
||||
|
||||
/// A trait that is used by a `Serialize` to iterate through a sequence.
|
||||
|
||||
Reference in New Issue
Block a user