Skip to content

Commit a0e1544

Browse files
chore(deps): update rust crate pep440_rs to 0.5.0 (#10703)
1 parent 2740fab commit a0e1544

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

Cargo.lock

Lines changed: 22 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ num_cpus = { version = "1.16.0" }
6767
once_cell = { version = "1.19.0" }
6868
path-absolutize = { version = "3.1.1" }
6969
pathdiff = { version = "0.2.1" }
70-
pep440_rs = { version = "0.4.0", features = ["serde"] }
70+
pep440_rs = { version = "0.5.0", features = ["serde"] }
7171
pretty_assertions = "1.3.0"
7272
proc-macro2 = { version = "1.0.79" }
7373
pyproject-toml = { version = "0.9.0" }

crates/ruff_linter/src/settings/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ impl SerializationFormat {
539539
pub struct RequiredVersion(VersionSpecifiers);
540540

541541
impl TryFrom<String> for RequiredVersion {
542-
type Error = pep440_rs::Pep440Error;
542+
type Error = pep440_rs::VersionSpecifiersParseError;
543543

544544
fn try_from(value: String) -> Result<Self, Self::Error> {
545545
// Treat `0.3.1` as `==0.3.1`, for backwards compatibility.

0 commit comments

Comments
 (0)