Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ceph/ceph-rust
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhong1 committed Mar 31, 2021
2 parents bda31b5 + 680ec05 commit 1267417
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,6 @@ impl StdError for RadosError {
}
}

impl StdError for RadosError {
fn source(&self) -> Option<&(dyn StdError + 'static)> {
match *self {
RadosError::FromUtf8Error(ref e) => e.source(),
RadosError::NulError(ref e) => e.source(),
RadosError::Error(ref _e) => None,
RadosError::IoError(ref e) => e.source(),
RadosError::ApiError(ref e) => e.source(),
RadosError::IntoStringError(ref e) => e.source(),
RadosError::UuidError(ref e) => e.source(),
RadosError::ParseBoolError(ref e) => e.source(),
RadosError::ParseIntError(ref e) => e.source(),
RadosError::SerdeError(ref e) => e.source(),
RadosError::MinVersion(ref _min, ref _current_version) => None,
RadosError::Parse(ref _input) => None,
}
}
}

impl RadosError {
/// Create a new RadosError with a String message
pub fn new(err: String) -> RadosError {
Expand Down

0 comments on commit 1267417

Please sign in to comment.