feat: remove unused errors

This commit is contained in:
daimond113 2025-01-02 19:09:57 +01:00
parent 9bf2af6454
commit e5b629e0c5
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C
3 changed files with 0 additions and 20 deletions

View file

@ -282,9 +282,5 @@ pub mod errors {
/// Error getting target
#[error("failed to get target")]
GetTargetFailed(#[from] Box<crate::source::errors::GetTargetError>),
/// Error writing package contents
#[error("failed to write package contents")]
WriteFailed(#[source] std::io::Error),
}
}

View file

@ -642,10 +642,6 @@ pub mod errors {
#[error("error creating Wally target")]
GetTarget(#[from] crate::source::wally::compat_util::errors::GetTargetError),
/// No manifest was found
#[error("no manifest found in repository {0}")]
NoManifest(Box<gix::Url>),
/// An error occurred opening the Git repository
#[error("error opening Git repository for url {0}")]
OpenRepo(Box<gix::Url>, #[source] gix::open::Error),
@ -669,10 +665,6 @@ pub mod errors {
#[error("error parsing object to tree for repository {0}")]
ParseObjectToTree(Box<gix::Url>, #[source] gix::object::peel::to_kind::Error),
/// An error occurred parsing the pesde manifest to UTF-8
#[error("error parsing the manifest for repository {0} to UTF-8")]
ParseManifest(#[source] std::string::FromUtf8Error),
/// An error occurred while serializing the index file
#[error("error serializing the index file for repository {0}")]
SerializeIndex(Box<gix::Url>, #[source] toml::ser::Error),

View file

@ -266,14 +266,6 @@ pub mod errors {
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum ReadFile {
/// Error opening the repository
#[error("error opening repository at {0}")]
Open(PathBuf, #[source] Box<gix::open::Error>),
/// Error reading tree from repository
#[error("error getting tree from repository at {0}")]
Tree(PathBuf, #[source] Box<TreeError>),
/// Error looking up entry in tree
#[error("error looking up entry {0} in tree")]
Lookup(String, #[source] gix::object::find::existing::Error),