Construct ContextError with error and context in consistent order

This commit is contained in:
David Tolnay 2019-10-05 17:15:31 -04:00
parent 1ee433706a
commit 7fdf38ea1b
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -36,8 +36,8 @@ where
{
self.map_err(|error| {
Error::from(ContextError {
context: f(),
error,
context: f(),
})
})
}
@ -58,8 +58,8 @@ impl<T> Context<T, Error> for Result<T, Error> {
{
self.map_err(|error| {
Error::from(ContextError {
context: f(),
error,
context: f(),
})
})
}