-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop requiring error kinds to impl Display
All kinds of `error::Error` now implements the `Display` trait, and the `Display` for the `Error` itself is inherited. The binding between the kind and `Display` is not necessary though. In this commit I dropped the restriction of error kinds by `Display`, and only implemented the trait for errors with displayable kinds. As a result, the developer got 2 options: - either to implement the `Display` for the kind (preferred), - or implement it for the error only (but not for the kind) (edge case).
- Loading branch information
Showing
1 changed file
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters