no-async-fn-in-traits
WarningTrait methods return impl Future<Output = T>. Implementations may use async fn.
pub trait UserRepository { async fn find_by_id(executor: E, id: &UserID) -> Result<Option<Self>>;}pub trait UserRepository<'a, D, E>where D: Database, E: Executor<'a, Database = D>,{ fn find_by_id(executor: E, id: &UserID) -> impl Future<Output = Result<Option<User>>>;}impl<'a, E> UserRepository<'a, Postgres, E> for Userwhere E: Executor<'a, Database = Postgres>,{ async fn find_by_id(executor: E, id: &UserID) -> Result<Option<Self>> { return Ok(None); }}How to fix
Add + Send when callers need it. Implementations can still use async fn.