diff --git a/Cargo.toml b/Cargo.toml index 87e1684..f465249 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/lib.rs b/src/lib.rs index 06c1d13..ee9f4a3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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), @@ -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, @@ -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), diff --git a/src/url.rs b/src/url.rs index 055416a..f3acf4b 100644 --- a/src/url.rs +++ b/src/url.rs @@ -139,7 +139,7 @@ pub(crate) fn parser<'a, E: Error<'a, &'a str> + 'a>( .ignored(), )) .then(frags) - .slice() + .to_slice() } #[cfg(test)]