diff --git a/crates/pypi-types/src/simple_json.rs b/crates/pypi-types/src/simple_json.rs index 7750c8215..b82c6931e 100644 --- a/crates/pypi-types/src/simple_json.rs +++ b/crates/pypi-types/src/simple_json.rs @@ -64,7 +64,7 @@ where return Ok(None); }; Ok(Some( - LenientVersionSpecifiers::from_str(&string).map(Into::into), + LenientVersionSpecifiers::from_str(&string).map(VersionSpecifiers::from), )) }