mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-28 21:41:58 +00:00
Construct ContextError with error and context in consistent order
This commit is contained in:
parent
1ee433706a
commit
7fdf38ea1b
@ -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(),
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user