mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-15 19:57:05 +00:00
Have visit_enum_simple default to calling visit_tuple_variant
This commit is contained in:
1 parent
0348a3914d
commit
97f08086dd
2 files changed
+8
-10
No files matched your search
@@ -131,7 +131,14 @@ pub trait Serializer {
|
||||
variant_index: usize,
|
||||
variant: &'static str,
|
||||
value: T) -> Result<(), Self::Error>
|
||||
where T: Serialize;
|
||||
where T: Serialize,
|
||||
{
|
||||
self.visit_tuple_variant(
|
||||
name,
|
||||
variant_index,
|
||||
variant,
|
||||
Some(value))
|
||||
}
|
||||
|
||||
fn visit_none(&mut self) -> Result<(), Self::Error>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user