News for hackers. Stuff that matters.
Re:Getting Started with Tokio by Arnavion on Saturday December 24, 2016 @03:54PM (#13251581)
In general, yes. But here I don't see why it's not possible to use FutureResult instead of BoxFuture.
Re:Getting Started with Tokio by lukes386 on Saturday December 24, 2016 @05:31PM (#13251895)
Yep, you're right, a plain FutureResult works fine in this case. I was aware of the general rule about boxing futures, but didn't realize it was unnecessary in this case. Thanks for pointing it out! I'll update the post.