Clean up Error enum in Metadata23 (#2835)

## Summary

Rename, and remove a bunch of unused variants.
This commit is contained in:
Charlie Marsh 2024-04-05 10:40:33 -04:00 committed by GitHub
parent 2f386ef440
commit a0b8d1a994
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 56 additions and 66 deletions

View file

@ -146,7 +146,11 @@ pub enum ErrorKind {
/// The metadata file could not be parsed.
#[error("Couldn't parse metadata of {0} from {1}")]
MetadataParseError(WheelFilename, String, #[source] Box<pypi_types::Error>),
MetadataParseError(
WheelFilename,
String,
#[source] Box<pypi_types::MetadataError>,
),
/// The metadata file was not found in the wheel.
#[error("Metadata file `{0}` was not found in {1}")]