Oh sweet, looks like Rustfmt learned how to better format async closures in Rust 1.41.0! Old: foo(|arg| { async move { // do smth } }); New: foo(|arg| async move { // do smth });
-
Show this thread
For multi-line closures this is very close to the expected final syntax for language support: foo(async move |arg| { // do smth }); :D
10:41 AM - 31 Jan 2020
0 replies
0 retweets
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.