Closed Licenser closed 3 years ago
The following code gives an example of Clippy complaining that _b is a used underscore binding. I suspect this has to do with how async-trait rewrites the function call?
_b
#![deny(clippy::pedantic)] #[async_trait::async_trait] pub trait TestTrait { async fn a(b: u8, c: u8) -> u8; } pub struct TestStruct {} #[async_trait::async_trait] impl TestTrait for TestStruct { async fn a(_b: u8, c: u8) -> u8 { c } }
<3 thank you for the quick fix!
The following code gives an example of Clippy complaining that
_b
is a used underscore binding. I suspect this has to do with how async-trait rewrites the function call?