Skip to content

Commit

Permalink
chore: Move off deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 4, 2023
1 parent cb9b485 commit 69f4b1e
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 69f4b1e

Please sign in to comment.