This commit is contained in:
Adrian Heine 2020-10-17 23:44:52 +02:00
parent b53267f406
commit da98bfba8c
20 changed files with 80 additions and 61 deletions

View file

@ -16,6 +16,7 @@ pub trait Runnable {
}
#[async_trait(?Send)]
#[allow(clippy::use_self)]
impl<S> Runnable for S
where
Self: Symbol + Debug,
@ -32,6 +33,7 @@ where
macro_rules! runnable_for_tuple {
( $($name:ident)* ) => (
#[allow(clippy::let_unit_value)]
#[async_trait(?Send)]
#[allow(non_snake_case)]
impl<$($name: Symbol + Debug,)*> Runnable for ($($name,)*) {
@ -117,7 +119,7 @@ mod test {
async fn run_symbol<S: Symbol + Debug, L: Logger>(
&self,
symbol: &S,
logger: &L,
_logger: &L,
force: bool,
) -> Result<bool, Box<dyn Error>> {
let run = force || !symbol.target_reached().await?;