Skip to content

Commit

Permalink
fix: add unused warning to CloseBuilder (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan authored Dec 11, 2024
1 parent c50717f commit 3d9f8e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zenoh/src/api/builders/close.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TCloseable: Closeable> {
closee: TCloseable::TClosee,
timeout: Duration,
Expand Down

0 comments on commit 3d9f8e1

Please sign in to comment.