changed writer to no-op when feature 'inspect' is disabled

arg-parsing-better
Avril 4 years ago
parent 58ea131c3f
commit df59cb16a8
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -134,7 +134,7 @@ async fn normal(cfg: config::Config) -> eyre::Result<()>
//#[cfg(debug_assertions)] cfg_eprintln!(Verbose; cfg, "{:?}", graph);
use futures::future::OptionFuture;
#[allow(unused_imports)] use futures::future::OptionFuture;
let (graph, writer) = {
cfg_if!{
if #[cfg(feature="inspect")] {
@ -146,7 +146,7 @@ async fn normal(cfg: config::Config) -> eyre::Result<()>
};
(g, OptionFuture::from(w))
} else {
(graph, OptionFuture::from(Option::<futures::future::BoxFuture<'static, ()>>::None))
(graph, ())//OptionFuture::from(Option::<futures::future::BoxFuture<'static, ()>>::None))
}
}
};

Loading…
Cancel
Save