From 1341520a9fedea23219d7eadcc9ec1ce5a1ea9e8 Mon Sep 17 00:00:00 2001 From: yuanyuyuan Date: Tue, 10 Dec 2024 01:10:33 +0800 Subject: [PATCH] fix: add unused warning to `CloseBuilder` --- zenoh/src/api/builders/close.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/zenoh/src/api/builders/close.rs b/zenoh/src/api/builders/close.rs index 53fba6a2a..daf53f1e2 100644 --- a/zenoh/src/api/builders/close.rs +++ b/zenoh/src/api/builders/close.rs @@ -27,6 +27,7 @@ use zenoh_runtime::ZRuntime; // NOTE: `Closeable` is only pub(crate) because it is zenoh-internal trait, so we don't // care about the `private_bounds` lint in this particular case. #[allow(private_bounds)] +#[must_use = "Resolvables do nothing unless you resolve them using `.await` or `zenoh::Wait::wait`"] pub struct CloseBuilder { closee: TCloseable::TClosee, timeout: Duration,