mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 07:38:01 +00:00
Merge pull request #1617 from arilotter/master
Fix unused variable warning when field of adjacently tagged enum is skipped
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user