dtolnay / async-trait

Type erasure for async trait methods
Apache License 2.0
1.81k stars 84 forks source link

Filling match arms replaces #[async_trait] attribute instead of actual match statement #225

Closed vikulikov closed 1 year ago

vikulikov commented 1 year ago

Before:

image

After:

image

This problem occurs also in user's code when implementing the trait

dtolnay commented 1 year ago

This is a bug in whatever IDE you are using.

vikulikov commented 1 year ago

I believe it is rust-analyzer than. Because I had the same behavior in neovim also. VSCode is on screenshots

WhyNotHugo commented 1 year ago

@vikulikov Did you report this on the rust_analyzer side?

vikulikov commented 1 year ago

No, for some reason I forgot to do that

WhyNotHugo commented 1 year ago

https://github.com/rust-lang/rust-analyzer/issues/12938