Resolve redundant_pattern_matching lint

This commit is contained in:
David Tolnay
2020-04-19 17:31:15 -07:00
parent b6def5300a
commit 0bab6be124
+1 -1
View File
@@ -2472,7 +2472,7 @@ mod content {
where
M: MapAccess<'de>,
{
while let Some(_) = try!(access.next_entry::<IgnoredAny, IgnoredAny>()) {}
while try!(access.next_entry::<IgnoredAny, IgnoredAny>()).is_some() {}
Ok(())
}
}