Skip to content
Snippets Groups Projects
Commit 63ff343f authored by Martin Larralde's avatar Martin Larralde
Browse files

Use `Error::source` instead of `Error::cause` in `lightmotif-io`

parent be5f093c
Branches
Tags
No related merge requests found
...@@ -50,7 +50,7 @@ impl Display for Error { ...@@ -50,7 +50,7 @@ impl Display for Error {
} }
impl std::error::Error for Error { impl std::error::Error for Error {
fn cause(&self) -> Option<&dyn std::error::Error> { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match self { match self {
Error::InvalidData => None, Error::InvalidData => None,
Error::Io(e) => Some(e), Error::Io(e) => Some(e),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment