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;