Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeMap's Default impl requires A: Default #43

Open
daboross opened this issue Nov 16, 2018 · 0 comments
Open

TypeMap's Default impl requires A: Default #43

daboross opened this issue Nov 16, 2018 · 0 comments

Comments

@daboross
Copy link

#[derive(Default)] assumes all type parameters should be required to be Default in order for the type to be Default. See documentation for Default impl at https://docs.rs/typemap/0.3.3/typemap/struct.TypeMap.html.

If Default is manually implemented, this restriction should be removed.

I can submit a PR for this, but it's not immediately necessary for what I'm doing. Just noticed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant