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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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),
))
}