Skip to content

Commit

Permalink
Add dyn to silence warning from new language edition
Browse files Browse the repository at this point in the history
  • Loading branch information
felixc committed Sep 2, 2019
1 parent 2aa2cfa commit 1679d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl std::error::Error for Rexiv2Error {
}
}

fn cause(&self) -> Option<&std::error::Error> {
fn cause(&self) -> Option<&dyn std::error::Error> {
match *self {
Rexiv2Error::NoValue => None,
Rexiv2Error::Utf8(ref err) => Some(err),
Expand Down

0 comments on commit 1679d6c

Please sign in to comment.