From 0d6f348fc29ed7f5ec54b2363a5797e60357a010 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 26 Sep 2024 16:47:39 +0500 Subject: [PATCH] Remove must_use from condition::Waiter (#430) --- ntex-util/CHANGES.md | 4 +++- ntex-util/Cargo.toml | 2 +- ntex-util/src/channel/condition.rs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ntex-util/CHANGES.md b/ntex-util/CHANGES.md index 02ce63a6a..f5fc2d4bb 100644 --- a/ntex-util/CHANGES.md +++ b/ntex-util/CHANGES.md @@ -1,6 +1,8 @@ # Changes -## [2.4.0] - 2024-xx-xx +## [2.4.0] - 2024-09-26 + +* Remove "must_use" from `condition::Waiter` * Remove mpsc::Sender::downgrade() diff --git a/ntex-util/Cargo.toml b/ntex-util/Cargo.toml index fa475625a..dcbfbe51d 100644 --- a/ntex-util/Cargo.toml +++ b/ntex-util/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ntex-util" -version = "2.3.0" +version = "2.4.0" authors = ["ntex contributors "] description = "Utilities for ntex framework" keywords = ["network", "framework", "async", "futures"] diff --git a/ntex-util/src/channel/condition.rs b/ntex-util/src/channel/condition.rs index d6771caaf..078ebca80 100644 --- a/ntex-util/src/channel/condition.rs +++ b/ntex-util/src/channel/condition.rs @@ -130,7 +130,7 @@ impl Drop for Condition { } } -#[must_use = "Waiter do nothing unless polled"] +/// Waits for result from condition pub struct Waiter { token: usize, inner: Cell>,