Fix clippy lint in Content::unexpected

This commit is contained in:
David Tolnay
2017-02-22 18:16:51 -08:00
parent a4bd6b9a96
commit 5e7883945b
+1 -3
View File
@@ -75,9 +75,7 @@ impl Content {
Content::Char(c) => Unexpected::Char(c),
Content::String(ref s) => Unexpected::Str(s),
Content::Bytes(ref b) => Unexpected::Bytes(b),
// @TODO: Are these mappings correct?
Content::None => Unexpected::Option,
Content::Some(_) => Unexpected::Option,
Content::None | Content::Some(_) => Unexpected::Option,
Content::Unit => Unexpected::Unit,
Content::Newtype(_) => Unexpected::NewtypeStruct,
Content::Seq(_) => Unexpected::Seq,