We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7376a2 commit fc9e074Copy full SHA for fc9e074
src/tests.rs
@@ -606,14 +606,12 @@ struct JsonParser;
606
#[test]
607
fn no_stack_overflow_multiple_nested_blocks() {
608
let mut input: String = "{{".into();
609
- for _ in 0..30 {
+ for _ in 0..20 {
610
let dup = input.clone();
611
input.push_str(&dup);
612
}
613
let mut input = Parser::new(&input);
614
- while !input.is_exhausted() {
615
- input.next().expect("What?");
616
- }
+ while let Ok(..) = input.next() { }
617
618
619
impl DeclarationParser for JsonParser {
0 commit comments