From 6a306e6ee9f47f3b37088217ffe3ebe9bbb54e5a Mon Sep 17 00:00:00 2001 From: Alisa Sireneva Date: Fri, 26 Jul 2024 20:00:43 +0300 Subject: [PATCH] Move call to tri! out of check_recursion! --- src/de.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de.rs b/src/de.rs index c7774f687..bfde371a1 100644 --- a/src/de.rs +++ b/src/de.rs @@ -1870,8 +1870,9 @@ impl<'de, 'a, R: Read<'de>> de::Deserializer<'de> for &'a mut Deserializer { 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'}') => {