Closed tyranron closed 3 years ago
When I use something like:
#[async_trait] impl MyTrait for Foo { async fn my_trait(&self) { const MAX: u16 = 128; // ... } async fn or_with_use(&self) { use MyError as E; // ... } }
clippy::items_after_statements now complains.
clippy::items_after_statements
Seems that the generated code has changed in the way that top-level use/const statements are not top-level anymore in sthe expanded code.
use
const
Fixed in 0.1.48.
When I use something like:
clippy::items_after_statements
now complains.Seems that the generated code has changed in the way that top-level
use
/const
statements are not top-level anymore in sthe expanded code.