This commit is contained in:
Adrian Heine 2022-01-09 11:51:53 +01:00
parent 0d41e8a833
commit 4eeb280f0d
21 changed files with 44 additions and 44 deletions

View file

@ -100,7 +100,7 @@ impl<L: 'static, B: 'static, SR: 'static, Rs: Hash + Eq + 'static, As: 'static>
);
drop(resources);
let result = future.await;
result.map_err(|e| e.into())
result.map_err(std::convert::Into::into)
};
result.map(|(t, did_run)| (t.into_artifact(), did_run))
}
@ -148,7 +148,7 @@ impl<
let drain = recorder.clone();
let log = Rc::new(slog::Logger::root(
drain,
o!("resource" => format!("{:?}", resource)),
o!("resource" => format!("{resource:?}")),
));
let result = self.1.add(&log, resource, force_run).await;
@ -190,7 +190,7 @@ impl<
let drain = recorder.clone();
let log = Rc::new(slog::Logger::root(
drain,
o!("symbol" => format!("{:?}", symbol)),
o!("symbol" => format!("{symbol:?}")),
));
let result = (self.1).0.core.run_symbol(&symbol, &log, force).await;
@ -332,6 +332,7 @@ mod test {
}
}
#[allow(clippy::type_complexity)]
fn get_setup() -> (
Rc<RefCell<usize>>,
Setup<