Skip to content

Commit

Permalink
More concise explanation of allow(unused_variables)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 16, 2019
1 parent 8dfb4cd commit fe06bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde_derive/src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ fn serialize_adjacently_tagged_variant(
where
__S: _serde::Serializer,
{
// Some members of this tuple will be unused if they're `skip_serializing`
// Elements that have skip_serializing will be unused.
#[allow(unused_variables)]
let (#(#fields_ident,)*) = self.data;
#inner
Expand Down

0 comments on commit fe06bc2

Please sign in to comment.