Merge pull request #1617 from arilotter/master
Fix unused variable warning when field of adjacently tagged enum is skipped
This commit is contained in:
commit
8dfb4cd02f
@ -720,6 +720,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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user