Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
figsoda committed Nov 20, 2023
1 parent 3cadae3 commit 317ee7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ keywords = ["dependency", "parser", "pep508", "python", "requirements"]
categories = ["parser-implementations"]

[dependencies]
chumsky = ">=1.0.0-alpha.3"
chumsky = "=1.0.0-alpha.6"

[dev-dependencies]
insta = "1.28.0"
insta = "1.34.0"
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ pub fn parser<'a, E: Error<'a, &'a str> + 'a>(
.then(any().filter(char::is_ascii_alphanumeric))
.repeated(),
)
.slice();
.to_slice();

let cmp = choice((
just("===").to(Comparator::Ae),
Expand All @@ -170,7 +170,7 @@ pub fn parser<'a, E: Error<'a, &'a str> + 'a>(
)
.repeated()
.at_least(1)
.slice(),
.to_slice(),
)
.map(|(comparator, version)| VersionSpec {
comparator,
Expand Down Expand Up @@ -215,11 +215,11 @@ pub fn parser<'a, E: Error<'a, &'a str> + 'a>(

let marker_var = choice((
just('\'')
.ignore_then(set!(c!() | '"').repeated().slice())
.ignore_then(set!(c!() | '"').repeated().to_slice())
.then_ignore(just('\''))
.map(Variable::String),
just('"')
.ignore_then(set!(c!() | '\'').repeated().slice())
.ignore_then(set!(c!() | '\'').repeated().to_slice())
.then_ignore(just('"'))
.map(Variable::String),
just("python_version").to(Variable::PythonVersion),
Expand Down
2 changes: 1 addition & 1 deletion src/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub(crate) fn parser<'a, E: Error<'a, &'a str> + 'a>(
.ignored(),
))
.then(frags)
.slice()
.to_slice()
}

#[cfg(test)]
Expand Down

0 comments on commit 317ee7d

Please sign in to comment.