Closed
Description
This code from serde
fn visit_map<M>(self, mut access: M) -> Result<(), M::Error>
where
M: MapAccess<'de>,
{
while let Some(_) = try!(access.next_entry::<IgnoredAny, IgnoredAny>()) {}
Ok(())
}
caused the warning
warning: redundant pattern matching, consider using `is_some()`
--> serde/src/private/de.rs:2475:23
|
2475 | while let Some(_) = try!(access.next_entry::<IgnoredAny, IgnoredAny>()) {}
| ^^^^^^^ --------------------------------------------------- help: try this: `while _.is_some()`
|
_.is_some()
does not look like it is going to work 😄
clippy 0.0.212 (891e1a8 2020-04-18)