-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix requiring generic parameters to implement Default (#179)
Currently the builder uses `#[derive(Default)]`, which adds additional bounds to the type parameters requiring them to implement Default. This is not required since the fields are all either `Option` or `PhantomData`, which always have defaults, and means that Builders cannot be instantiated for non-Default generics. This commit makes the builder implement Default manually, without any additional bounds. Fixes #178
- Loading branch information
1 parent
ea372ba
commit 3899b89
Showing
3 changed files
with
86 additions
and
12 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
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
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