From 27a6cb4980275f4e9ca8279316a893621a9c2f04 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 18 Mar 2024 10:32:28 -0500 Subject: [PATCH] fix(parser): Don't stackoverflow on opt-level=0 Fixes #702 --- crates/toml_edit/src/parser/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/toml_edit/src/parser/mod.rs b/crates/toml_edit/src/parser/mod.rs index 94205cd4..2eed61c7 100644 --- a/crates/toml_edit/src/parser/mod.rs +++ b/crates/toml_edit/src/parser/mod.rs @@ -98,7 +98,7 @@ pub(crate) mod prelude { current: usize, } - const LIMIT: usize = 128; + const LIMIT: usize = 100; #[cfg(not(feature = "unbounded"))] impl RecursionCheck {