Skip to content

Commit

Permalink
Resolve match_wildcard_for_single_variants pedantic lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 30, 2020
1 parent ef6ed1d commit 31fe82a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serde/src/private/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)),
Expand Down Expand Up @@ -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",
)),
Expand Down

0 comments on commit 31fe82a

Please sign in to comment.