-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid X509IdentityProvider overloaded methods
While using a `X509IdentityProvider` in a generic context, I discovered that it has a few methods which I found confusing: - X509IdentityProvider::identity takes 1 argument, but IdentityProvider::identity takes 2 arguments! - X509IdentityProvider::valid_successor takes 2 arguments, but IdentityProvider::valid_successor takes 3 arguments! I ended up solving this with the fully-qualified `<Type as Trait>::method` syntax, but I think the situation can be avoided all together by just implementing the trait directly.
- Loading branch information
Showing
1 changed file
with
27 additions
and
52 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