Skip to content

Commit

Permalink
Merge pull request #1159 from iex-rs/fix-recursion
Browse files Browse the repository at this point in the history
Move call to tri! out of check_recursion!
  • Loading branch information
dtolnay committed Jul 26, 2024
2 parents 3f1c6de + 6a306e6 commit 40dd7f5
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 40dd7f5

Please sign in to comment.