twitch-rs / twitch_api

Rust library for talking with the Twitch API aka. "Helix", TMI and more! Use Twitch endpoints fearlessly!
Apache License 2.0
150 stars 33 forks source link

use `async fn` and return-position `impl Trait` in trait #393

Open Emilgardis opened 1 year ago

Emilgardis commented 1 year ago

in 1.75 AFIT and RPITIT are stabilized, is there anything that needs this or would benefit from it?

Nerixyz commented 1 year ago

I suppose Client::req could use this:

https://github.com/twitch-rs/twitch_api/blob/f7168f41b24b3f6501c0e8a6e1806f06e001fa02/src/client.rs#L174-L179

Basically most things that box stuff? Though some depend on other libraries.