From 5e7883945b9b2f152bd4adecfbc1ad2747e1141c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 22 Feb 2017 18:16:51 -0800 Subject: [PATCH] Fix clippy lint in Content::unexpected --- serde/src/de/content.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/serde/src/de/content.rs b/serde/src/de/content.rs index 4914f5e1..2d657d92 100644 --- a/serde/src/de/content.rs +++ b/serde/src/de/content.rs @@ -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,