Skip to content

Commit

Permalink
fix: Remove depricated description method of io error
Browse files Browse the repository at this point in the history
  • Loading branch information
rene committed Aug 19, 2019
1 parent d5d487e commit a382c32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use chrono;
extern crate clap;
use std::error::Error;

use regex::Regex;
use rpm;
Expand Down Expand Up @@ -264,12 +263,12 @@ impl std::fmt::Debug for AppError {

impl From<std::io::Error> for AppError {
fn from(err: std::io::Error) -> AppError {
AppError::new(err.description())
AppError::new(format!("{}",err))
}
}

impl From<rpm::RPMError> for AppError {
fn from(err: rpm::RPMError) -> AppError {
AppError::new(err.description())
AppError::new(format!("{}",err))
}
}

0 comments on commit a382c32

Please sign in to comment.