Clippy pedantic (#1963)

Address a few pedantic lints

lints are separated into separate commits so they can be reviewed
individually.

I've not added enforcement for any of these lints, but that could be
added if desirable.
This commit is contained in:
danieleades 2024-02-25 19:04:05 +00:00 committed by GitHub
parent b052291685
commit 8d721830db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
68 changed files with 635 additions and 673 deletions

View file

@ -85,7 +85,7 @@ impl VersionMap {
NoBinary::All => true,
NoBinary::Packages(packages) => packages.contains(package_name),
};
VersionMap {
Self {
inner: VersionMapInner::Lazy(VersionMapLazy {
map,
simple_metadata,
@ -175,7 +175,7 @@ impl VersionMap {
impl From<FlatDistributions> for VersionMap {
fn from(flat_index: FlatDistributions) -> Self {
VersionMap {
Self {
inner: VersionMapInner::Eager(flat_index.into()),
}
}