From 73104a81aaed0d46a0e68d037f55ddbc097b6d3a Mon Sep 17 00:00:00 2001 From: John Smith Date: Thu, 9 Dec 2021 16:11:52 -0500 Subject: [PATCH] catch more errors --- veilid-cli/src/main.rs | 1 + veilid-core/src/lib.rs | 1 + veilid-core/src/veilid_core.rs | 2 +- veilid-server/src/main.rs | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/veilid-cli/src/main.rs b/veilid-cli/src/main.rs index 47d37431..e6c61087 100644 --- a/veilid-cli/src/main.rs +++ b/veilid-cli/src/main.rs @@ -1,4 +1,5 @@ #![deny(clippy::all)] +#![deny(unused_must_use)] use anyhow::*; use async_std::prelude::*; diff --git a/veilid-core/src/lib.rs b/veilid-core/src/lib.rs index 9df25b1b..d491180a 100644 --- a/veilid-core/src/lib.rs +++ b/veilid-core/src/lib.rs @@ -1,4 +1,5 @@ #![deny(clippy::all)] +#![deny(unused_must_use)] #![cfg_attr(target_arch = "wasm32", no_std)] #[macro_use] diff --git a/veilid-core/src/veilid_core.rs b/veilid-core/src/veilid_core.rs index 6856a046..e1471ffb 100644 --- a/veilid-core/src/veilid_core.rs +++ b/veilid-core/src/veilid_core.rs @@ -205,7 +205,7 @@ impl VeilidCore { // stop the node gracefully because the veilid api was dropped pub(crate) async fn shutdown(self) { let mut inner = self.inner.lock(); - Self::internal_shutdown(&mut *inner); + Self::internal_shutdown(&mut *inner).await; } // diff --git a/veilid-server/src/main.rs b/veilid-server/src/main.rs index dad2eec5..52785164 100644 --- a/veilid-server/src/main.rs +++ b/veilid-server/src/main.rs @@ -1,5 +1,6 @@ #![forbid(unsafe_code)] #![deny(clippy::all)] +#![deny(unused_must_use)] mod client_api; mod settings;