Rename distribution_types::VersionOrUrl to VersionOrUrlRef (#3254)

This is more consistent with the other `*Ref` types and reduces
confusion with the real `VersionOrUrl` type.
This commit is contained in:
konsti 2024-05-06 20:15:56 +02:00 committed by GitHub
parent e9490b92b5
commit 2c84af15b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 65 additions and 65 deletions

View file

@ -19,7 +19,7 @@ use tracing::{debug, enabled, info_span, instrument, trace, warn, Instrument, Le
use distribution_types::{
BuiltDist, Dist, DistributionMetadata, IncompatibleDist, IncompatibleSource, IncompatibleWheel,
InstalledDist, RemoteSource, Requirement, ResolvedDist, ResolvedDistRef, SourceDist,
VersionOrUrl,
VersionOrUrlRef,
};
pub(crate) use locals::Locals;
use pep440_rs::{Version, MIN_VERSION};
@ -1258,10 +1258,10 @@ impl<
PubGrubPackage::Python(_) => {}
PubGrubPackage::Extra(_, _, _) => {}
PubGrubPackage::Package(package_name, _extra, Some(url)) => {
reporter.on_progress(package_name, &VersionOrUrl::Url(url));
reporter.on_progress(package_name, &VersionOrUrlRef::Url(url));
}
PubGrubPackage::Package(package_name, _extra, None) => {
reporter.on_progress(package_name, &VersionOrUrl::Version(version));
reporter.on_progress(package_name, &VersionOrUrlRef::Version(version));
}
}
}