mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
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:
parent
e9490b92b5
commit
2c84af15b8
12 changed files with 65 additions and 65 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue