diff options
| author | John Kugelman <john@kugelman.name> | 2021-10-10 02:44:26 -0400 |
|---|---|---|
| committer | John Kugelman <john@kugelman.name> | 2021-10-10 02:44:26 -0400 |
| commit | 5b5c12be1cf2b2531a1cbf7097d2b5102cfaccd8 (patch) | |
| tree | d330f50e13e10c83c8ead1deca530a8e48496107 /library/core/src/task | |
| parent | 6928fafe06e4ab29317f75194e1bf67c119dccdc (diff) | |
Add #[must_use] to core and std constructors
Diffstat (limited to 'library/core/src/task')
| -rw-r--r-- | library/core/src/task/wake.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/task/wake.rs b/library/core/src/task/wake.rs index b775e022a54..2b540716154 100644 --- a/library/core/src/task/wake.rs +++ b/library/core/src/task/wake.rs @@ -39,6 +39,7 @@ impl RawWaker { #[rustc_promotable] #[stable(feature = "futures_api", since = "1.36.0")] #[rustc_const_stable(feature = "futures_api", since = "1.36.0")] + #[must_use] pub const fn new(data: *const (), vtable: &'static RawWakerVTable) -> RawWaker { RawWaker { data, vtable } } |
