rust-lang / impl-trait-utils

Utilities for working with impl traits in Rust.
Apache License 2.0
89 stars 9 forks source link

feat: support default implement method #28

Open Sherlock-Holo opened 7 months ago

Sherlock-Holo commented 7 months ago

that should fix #17

tmandry commented 1 month ago

Thanks for your PR. Unfortunately I think it is too simplistic to land. In order to capture references to Self we will need where Self: Sync bounds (at least in the case of a Send trait.. in the general case, I think the type checker may not be up to the task, so we will have to keep it limited to Send for now). We also need to make sure arguments are moved into the async block, as is done in #20.