switch from Error::cause to Error::source
This commit is contained in:
parent
c0c7f83051
commit
d22d1c3f38
|
@ -65,7 +65,7 @@ impl Error for InstanceError {
|
|||
|
||||
fn cause(&self) -> Option<&Error> {
|
||||
if let &InstanceError::VkError(ref err) = self {
|
||||
return err.cause();
|
||||
return err.source();
|
||||
}
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue