(self, context: C)
| 130 | { |
| 131 | #[inline] |
| 132 | fn context<C>(self, context: C) -> Result<T> |
| 133 | where |
| 134 | C: fmt::Display + Send + Sync + 'static, |
| 135 | { |
| 136 | match self { |
| 137 | Ok(x) => Ok(x), |
| 138 | Err(e) => Err(Error::new(e).context(context)), |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | #[inline] |
| 143 | fn with_context<C, F>(self, f: F) -> Result<T> |
no test coverage detected