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

Adapt to Futures 0.1.15 by not using boxed() #196

Merged
merged 11 commits into from
Sep 1, 2017

Conversation

faern
Copy link
Contributor

@faern faern commented Sep 1, 2017

Futures 0.1.15 deprecates the BoxFuture type and the .boxed() method on Future. The issue talking about that recommend that people use Box::new(...) instead because it allows the compiler to figure out some magic better. So I went ahead and fixed that.

@faern
Copy link
Contributor Author

faern commented Sep 1, 2017

The test that fails on Travis works on my machine on stable Rust. Maybe just restart the build?

@faern
Copy link
Contributor Author

faern commented Sep 1, 2017

Ultimately it would probably be better if there could be less trait objects and more monomorphization. But I didn't feel this was the time to look at that as well :)

Copy link
Contributor

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@debris debris merged commit 6b22d6f into paritytech:master Sep 1, 2017
@faern faern deleted the fix-boxed-future branch September 4, 2017 14:56
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.

3 participants