diff --git a/serde/src/private/de.rs b/serde/src/private/de.rs index 100673e2..606e2c1b 100644 --- a/serde/src/private/de.rs +++ b/serde/src/private/de.rs @@ -2472,7 +2472,7 @@ mod content { where M: MapAccess<'de>, { - while let Some(_) = try!(access.next_entry::()) {} + while try!(access.next_entry::()).is_some() {} Ok(()) } }