Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated Error::description and Error::cause #58

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions src/ini.rs
Original file line number Diff line number Diff line change
Expand Up @@ -764,15 +764,7 @@ impl Display for ParseError {
}
}

impl error::Error for ParseError {
fn description(&self) -> &str {
self.msg.as_str()
}

fn cause(&self) -> Option<&dyn error::Error> {
None
}
}
impl error::Error for ParseError {}

#[derive(Debug)]
pub enum Error {
Expand All @@ -790,13 +782,6 @@ impl Display for Error {
}

impl error::Error for Error {
fn description(&self) -> &str {
match *self {
Error::Io(ref err) => err.description(),
Error::Parse(ref err) => err.description(),
}
}

fn source(&self) -> Option<&(dyn error::Error + 'static)> {
match *self {
Error::Io(ref err) => err.source(),
Expand Down