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
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ impl Display 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 {
Error::InvalidData => None,
Error::Io(e) => Some(e),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment