More concise explanation of allow(unused_variables)

This commit is contained in:
David Tolnay
2019-09-16 00:31:23 -07:00
parent 8dfb4cd02f
commit fe06bc2f88
+1 -1
View File
@@ -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