Resolve match_wildcard_for_single_variants pedantic lint

This commit is contained in:
David Tolnay
2020-05-29 17:46:40 -07:00
parent ef6ed1d1be
commit 31fe82a215
+2 -2
View File
@@ -1562,7 +1562,7 @@ mod content {
other.unexpected(),
&"struct variant",
)),
_ => Err(de::Error::invalid_type(
None => Err(de::Error::invalid_type(
de::Unexpected::UnitVariant,
&"struct variant",
)),
@@ -2252,7 +2252,7 @@ mod content {
other.unexpected(),
&"struct variant",
)),
_ => Err(de::Error::invalid_type(
None => Err(de::Error::invalid_type(
de::Unexpected::UnitVariant,
&"struct variant",
)),