From df59cb16a818bedd4f39dc36215bcf297972433b Mon Sep 17 00:00:00 2001 From: Avril Date: Thu, 18 Feb 2021 17:35:54 +0000 Subject: [PATCH] changed writer to no-op when feature 'inspect' is disabled --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index e372433..61078ad 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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::>::None)) + (graph, ())//OptionFuture::from(Option::>::None)) } } };