Skip to content

Commit 3d9f8e1

Browse files
authored
fix: add unused warning to CloseBuilder (#1644)
1 parent c50717f commit 3d9f8e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zenoh/src/api/builders/close.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use zenoh_runtime::ZRuntime;
2727
// NOTE: `Closeable` is only pub(crate) because it is zenoh-internal trait, so we don't
2828
// care about the `private_bounds` lint in this particular case.
2929
#[allow(private_bounds)]
30+
#[must_use = "Resolvables do nothing unless you resolve them using `.await` or `zenoh::Wait::wait`"]
3031
pub struct CloseBuilder<TCloseable: Closeable> {
3132
closee: TCloseable::TClosee,
3233
timeout: Duration,

0 commit comments

Comments
 (0)