You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
traitModernAsyncTrait{fndo_something(&self) -> implFuture<Output = ()>;}structMyStruct;implModernAsyncTraitforMyStruct{/* ctrl + space and hit enter here on the `async fn do_something(..)` item -- it'll produce the following: */// vvvvvasyncfndo_something(&self) -> (){}}
When autocompleting with RA in VSCode for async traits which use impl Future<Output = ()>, RA will automatically add a unit return type to the function in the trait, which is unnecessary.