|
|
@ -139,7 +139,12 @@ async fn normal(cfg: config::Config) -> eyre::Result<()>
|
|
|
|
cfg_if!{
|
|
|
|
cfg_if!{
|
|
|
|
if #[cfg(feature="inspect")] {
|
|
|
|
if #[cfg(feature="inspect")] {
|
|
|
|
let graph = Arc::new(graph);
|
|
|
|
let graph = Arc::new(graph);
|
|
|
|
(Arc::clone(&graph), OptionFuture::from(Some(tokio::spawn(write_graph(graph)))))
|
|
|
|
let (g, w) = if cfg.serialise_output.is_some() {
|
|
|
|
|
|
|
|
(Arc::clone(&graph), Some(tokio::spawn(write_graph(graph))))
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
(graph, None)
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
(g, OptionFuture::from(w))
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
(graph, OptionFuture::from(Option::<futures::future::BoxFuture<'static, ()>>::None))
|
|
|
|
(graph, OptionFuture::from(Option::<futures::future::BoxFuture<'static, ()>>::None))
|
|
|
|
}
|
|
|
|
}
|
|
|
|