From 69f4b1eaff2e52cf2c72e9a33ee6c311818a30e6 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 4 Dec 2023 12:15:09 -0600 Subject: [PATCH] chore: Move off deprecated --- crates/varcon-core/src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/varcon-core/src/parser.rs b/crates/varcon-core/src/parser.rs index 87d63da..cfa238c 100644 --- a/crates/varcon-core/src/parser.rs +++ b/crates/varcon-core/src/parser.rs @@ -160,7 +160,7 @@ impl Entry { trace("entry", move |input: &mut &str| { let var_sep = (winnow::ascii::space0, '/', winnow::ascii::space0); let variants = - winnow::combinator::separated1(Variant::parse_, var_sep).parse_next(input)?; + winnow::combinator::separated(1.., Variant::parse_, var_sep).parse_next(input)?; let desc_sep = (winnow::ascii::space0, '|'); let description = @@ -330,7 +330,7 @@ impl Variant { fn parse_(input: &mut &str) -> PResult { trace("variant", move |input: &mut &str| { - let types = winnow::combinator::separated1(Type::parse_, winnow::ascii::space1); + let types = winnow::combinator::separated(1.., Type::parse_, winnow::ascii::space1); let sep = (":", winnow::ascii::space0); let (types, word) = winnow::combinator::separated_pair(types, sep, word).parse_next(input)?;