• @pm_me_your_quackers
    link
    3
    edit-2
    10 months ago
    trait HttpService {
        async fn fetch(&self, url: Url) -> HtmlBody;
    //  ^^^^^^^^ desugars to:
    //  fn fetch(&self, url: Url) -> impl Future;
    }
    
    

    Man I’ve been waiting for this to be stabilized for a long time. So excited about it.