Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
editoast: make 'Result' more flexible
When defining a new `Result`, it's sometimes annoying having a `Result` available and trying to use it as `Result<T, E>` but actually, there is only one generic argument. Replacing `type Result<T> = StdResult<T, InternalError>` by `type Result<T, E = InternalError> = StdResult<T, E>` keep the bonus of using a custom `Result` (always returning our `InternalError`) but leaving the possibility to opt-out easily by specifying the second generic argument.
- Loading branch information