Skip to content

Commit

Permalink
Move call to tri! out of check_recursion!
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Jul 26, 2024
1 parent 3f1c6de commit 6a306e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1870,8 +1870,9 @@ impl<'de, 'a, R: Read<'de>> de::Deserializer<'de> for &'a mut Deserializer<R> {
Some(b'{') => {
check_recursion! {
self.eat_char();
let value = tri!(visitor.visit_enum(VariantAccess::new(self)));
let ret = visitor.visit_enum(VariantAccess::new(self));
}
let value = tri!(ret);

match tri!(self.parse_whitespace()) {
Some(b'}') => {
Expand Down

0 comments on commit 6a306e6

Please sign in to comment.