Skip to content

Remove boxing from futures example #26

@dimbleby

Description

@dimbleby

The example in cares_futures.rs currently has queries returning BoxFuture. That's an unnecessary allocation best avoided by returning impl Future - if and when that stabilises.

See rust-lang/rust#34511.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions