Skip to content

Commit

Permalink
Remove recursion debug limit
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniosarosi committed Dec 18, 2024
1 parent d6b1e9e commit c5267b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ impl TypeCoercer for FieldType {
target: &FieldType,
value: Option<&crate::jsonish::Value>,
) -> Result<BamlValueWithFlags, ParsingError> {
unsafe {
LIMIT += 1;
if LIMIT > 500 {
panic!("Stack Overflow Bruh {}", LIMIT);
}
}

match value {
Some(crate::jsonish::Value::AnyOf(candidates, primitive)) => {
log::debug!(
Expand Down
Loading

0 comments on commit c5267b5

Please sign in to comment.