dtolnay / async-trait

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

Forward attributes on `impl` function parameters to variable declaration. #227

Closed azriel91 closed 1 year ago

azriel91 commented 1 year ago

Fixes #226.

It feels rare to have attributes on parameters, I can't imagine a concrete scenario where forwarding all attributes is undesirable. We could filter the attributes that are forwarded to only the #[cfg(..)] ones.