mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-22 03:36:17 +00:00
Fix #[derive_serialize] for tuple structs
This commit is contained in:
1 parent
6b7aa269b8
commit
a565df9cf7
4 files changed
+215
-34
No files matched your search
@@ -605,6 +605,15 @@ impl<'a, T> Serialize for &'a T where T: Serialize {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, T> Serialize for &'a mut T where T: Serialize {
|
||||
#[inline]
|
||||
fn visit<V>(&self, visitor: &mut V) -> Result<V::Value, V::Error>
|
||||
where V: Visitor,
|
||||
{
|
||||
(**self).visit(visitor)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Serialize for Box<T> where T: Serialize {
|
||||
#[inline]
|
||||
fn visit<V>(&self, visitor: &mut V) -> Result<V::Value, V::Error>
|
||||
|
||||
Reference in new issue
Block a user