From 3d9f8e1e382e718ca809bd88adf00af5df69f0ae Mon Sep 17 00:00:00 2001 From: Yuyuan Yuan Date: Wed, 11 Dec 2024 18:47:46 +0800 Subject: [PATCH] fix: add unused warning to `CloseBuilder` (#1644) --- 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 53fba6a2ab..daf53f1e27 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,