What is Nostr?
Hemera :ms_snow_leopard: /
npub1xzf…66cc
2023-07-09 12:49:57

Hemera :ms_snow_leopard: on Nostr: I really don't get why "Remove async from function that doesn't use await" needs to ...

I really don't get why "Remove async from function that doesn't use await" needs to be an action from rust-analyzer...

The PR/Issue that implements it don't give a motivation, just a 'It's not needed' which is just... false? I most often run into this when using libraries that expect I pass them a future, and sometimes that future is very simple. And yet, the most prominent code action I get is "Remove unnecessary async" 👏
Author Public Key
npub1xzfa3shpevdl74wwuvhq80ge24qpw34rlm93mfeh2yv265dn7rtq8l66cc