Remove unused error enum variants (#17657)

This commit is contained in:
konsti
2026-01-22 12:31:55 +01:00
committed by GitHub
parent 7a3e731657
commit 2458d4835d
3 changed files with 0 additions and 15 deletions
-3
View File
@@ -392,9 +392,6 @@ pub enum ErrorKind {
"Network connectivity is disabled, but the requested data wasn't found in the cache for: `{0}`"
)]
Offline(String),
#[error("Invalid cache control header: `{0}`")]
InvalidCacheControl(String),
}
impl ErrorKind {
-6
View File
@@ -24,8 +24,6 @@ pub enum Error {
NoBuild,
// Network error
#[error("Expected an absolute path, but received: {}", _0.user_display())]
RelativePath(PathBuf),
#[error(transparent)]
InvalidUrl(#[from] uv_distribution_types::ToUrlError),
#[error("Expected a file URL, but received: {0}")]
@@ -126,14 +124,10 @@ pub enum Error {
MissingGitLfsArtifacts(DisplaySafeUrl, #[source] GitError),
#[error("Failed to extract static metadata from `PKG-INFO`")]
PkgInfo(#[source] uv_pypi_types::MetadataError),
#[error("Failed to extract metadata from `requires.txt`")]
RequiresTxt(#[source] uv_pypi_types::MetadataError),
#[error("The source distribution is missing a `pyproject.toml` file")]
MissingPyprojectToml,
#[error("Failed to extract static metadata from `pyproject.toml`")]
PyprojectToml(#[source] uv_pypi_types::MetadataError),
#[error("Unsupported scheme in URL: {0}")]
UnsupportedScheme(String),
#[error(transparent)]
MetadataLowering(#[from] MetadataError),
#[error("Distribution not found at: {0}")]
-6
View File
@@ -49,9 +49,6 @@ pub enum ResolveError {
#[error("The channel closed unexpectedly")]
ChannelClosed,
#[error(transparent)]
Join(#[from] tokio::task::JoinError),
#[error("Attempted to wait on an unregistered task: `{_0}`")]
UnregisteredTask(String),
@@ -104,9 +101,6 @@ pub enum ResolveError {
#[error(transparent)]
DistributionType(#[from] uv_distribution_types::Error),
#[error(transparent)]
ParsedUrl(#[from] uv_pypi_types::ParsedUrlError),
#[error("{0} `{1}`")]
Dist(
DistErrorKind,