Remove conversion from empty seq to unit struct

This commit is contained in:
David Tolnay
2017-04-09 13:08:05 -07:00
parent cc933b9cdb
commit 1986c17052
2 changed files with 7 additions and 15 deletions
-7
View File
@@ -168,13 +168,6 @@ fn deserialize_unit_struct(ident: &syn::Ident, item_attrs: &attr::Item) -> Fragm
{
_serde::export::Ok(#ident)
}
#[inline]
fn visit_seq<__V>(self, _: __V) -> _serde::export::Result<#ident, __V::Error>
where __V: _serde::de::SeqVisitor<'de>
{
_serde::export::Ok(#ident)
}
}
_serde::Deserializer::deserialize_unit_struct(__deserializer, #type_name, __Visitor)