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

Future-proof against inference changes #2

Merged
merged 1 commit into from
Feb 3, 2017

Conversation

canndrew
Copy link
Contributor

@canndrew canndrew commented Feb 3, 2017

Hi,

Some recent future-compatibility testing showed up an issue in this crate. In the future, creating a value of type T where T is unspecified and can't be inferred will cause the compiler to either give an error or default T to ! (where it currently defaults to ()).

This PR makes it so you're explicitly asking for a () from the map.

@tesaguri tesaguri merged commit 0c77f8a into tesaguri:master Feb 3, 2017
@tesaguri
Copy link
Owner

tesaguri commented Feb 3, 2017

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants