Skip to content

Commit

Permalink
Merge pull request #879 from epage/update
Browse files Browse the repository at this point in the history
chore: Move off deprecated
  • Loading branch information
epage authored Dec 4, 2023
2 parents cb9b485 + 69f4b1e commit 8dec26e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/varcon-core/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -330,7 +330,7 @@ impl Variant {

fn parse_(input: &mut &str) -> PResult<Self, ()> {
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)?;
Expand Down

0 comments on commit 8dec26e

Please sign in to comment.