From 2e27abd34a4b676d6edf6abb1fada26964608d20 Mon Sep 17 00:00:00 2001 From: konsti Date: Thu, 2 May 2024 12:26:42 +0200 Subject: [PATCH] Remove `Into::into` (#3337) Motivated by https://github.com/astral-sh/uv/pull/3263#discussion_r1585896159 I don't think we can lint againt this since we do want to allow `.into()`, just not the bare `Into::into` call. --- crates/pypi-types/src/simple_json.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), )) }