Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed May 17, 2024
1 parent 074ea6d commit e371b67
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ mod deserializers {
where
A: SeqAccess<'de>,
{
while let Some(_) = seq.next_element::<de::IgnoredAny>()? {}
while seq.next_element::<de::IgnoredAny>()?.is_some() {}
Ok(HashMap::new())
}

Expand Down Expand Up @@ -717,7 +717,10 @@ mod deserializers {
where
M: MapAccess<'de>,
{
while let Some(_) = map.next_entry::<de::IgnoredAny, de::IgnoredAny>()? {}
while map
.next_entry::<de::IgnoredAny, de::IgnoredAny>()?
.is_some()
{}
Ok(Vec::new())
}

Expand Down

0 comments on commit e371b67

Please sign in to comment.