Remove unused error enum variants (#17657)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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}")]
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user