Skip to content

Commit

Permalink
Remove must_use from condition::Waiter (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 authored Sep 26, 2024
1 parent acb18e5 commit 0d6f348
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ntex-util/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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()

Expand Down
2 changes: 1 addition & 1 deletion ntex-util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-util"
version = "2.3.0"
version = "2.4.0"
authors = ["ntex contributors <team@ntex.rs>"]
description = "Utilities for ntex framework"
keywords = ["network", "framework", "async", "futures"]
Expand Down
2 changes: 1 addition & 1 deletion ntex-util/src/channel/condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl<T: Default> Drop for Condition<T> {
}
}

#[must_use = "Waiter do nothing unless polled"]
/// Waits for result from condition
pub struct Waiter<T = ()> {
token: usize,
inner: Cell<Inner<T>>,
Expand Down

0 comments on commit 0d6f348

Please sign in to comment.