Allow unused variables in tuple in AdjacentlyTagged serializer
This commit is contained in:
Ari Lotter committed 2019-09-09 10:43:05 -04:00
1 parent 4cea81f93f
commit 9de49241fb
1 file changed
+2
+2
View File
@@ -723,6 +723,8 @@ fn serialize_adjacently_tagged_variant(
where
__S: _serde::Serializer,
{
// Some members of this tuple will be unused if they're `skip_serializing`
#[allow(unused_variables)]
let (#(#fields_ident,)*) = self.data;
#inner
}