mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-28 06:19:50 +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:
1 parent
5d4f9ce72b
commit
d0ee5b0b4b
7 files changed
+23
-255
No files matched your search
@@ -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