Skip to content

Commit

Permalink
remove deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
bomgar committed Aug 1, 2023
1 parent a3061e5 commit 3f94cec
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/errors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,6 @@ impl fmt::Display for AppError {
}

impl Error for AppError {
#[allow(deprecated)]
fn description(&self) -> &str {
match *self {
AppError::Io(ref err) => err.description(),
AppError::UserError(ref str) | AppError::RuntimeError(ref str) => str.as_ref(),
AppError::BadJson(ref err) => err.description(),
AppError::InternalError(str) => str,
AppError::GitError(ref err) => err.description(),
AppError::Regex(ref err) => err.description(),
AppError::TomlSerError(ref err) => err.description(),
AppError::TomlDeError(ref err) => err.description(),
AppError::WalkdirError(ref err) => err.description(),
AppError::ReqwestError(ref err) => err.description(),
}
}

fn cause(&self) -> Option<&dyn Error> {
match *self {
Expand Down

0 comments on commit 3f94cec

Please sign in to comment.