-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Future::boxed with Box::new.
In futures 0.1.15, the boxed() method on Future structs was deprecated. This returned a BoxFuture type which had to be declared either Send or 'static while wrapping a Future in Box::new() allows inference of the appropriate trait bounds. We already don't use the BoxFuture trait, so just call Box::new() directly instead to avoid the deprecation warning and make it easier to port to future releases. See also rust-lang/futures-rs#228
- Loading branch information
Showing
3 changed files
with
8 additions
and
9 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