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.
This commit is contained in:
konsti
2024-05-02 12:26:42 +02:00
committed by GitHub
parent 538a85b827
commit 2e27abd34a
+1 -1
View File
@@ -64,7 +64,7 @@ where
return Ok(None);
};
Ok(Some(
LenientVersionSpecifiers::from_str(&string).map(Into::into),
LenientVersionSpecifiers::from_str(&string).map(VersionSpecifiers::from),
))
}