From b8250a0f3975b63f54eea370d9d0907e92252984 Mon Sep 17 00:00:00 2001 From: John Turner Date: Mon, 27 Oct 2025 01:37:29 -0400 Subject: bring back separated_list but with a range parameter --- tests/sexpr.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/sexpr.rs b/tests/sexpr.rs index 4434670..328d868 100644 --- a/tests/sexpr.rs +++ b/tests/sexpr.rs @@ -32,8 +32,7 @@ fn int<'a>() -> impl Parser<&'a str, Output = Sexpr> { fn sexpr<'a>(it: InputIter<&'a str>) -> ParserResult<&'a str, Sexpr> { sexpr - .followed_by(whitespace()) - .list(0..) + .separated_list(whitespace(), 0..) .delimited_by(tag("("), tag(")")) .map(|output| Sexpr::List(output)) .or(atom()) -- cgit v1.2.3