fix waker_getters
tracking issue number
This commit is contained in:
parent
5b8bc568d2
commit
04f3adb4a7
1 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ impl RawWaker {
|
||||||
/// Get the `data` pointer used to create this `RawWaker`.
|
/// Get the `data` pointer used to create this `RawWaker`.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[unstable(feature = "waker_getters", issue = "87021")]
|
#[unstable(feature = "waker_getters", issue = "96992")]
|
||||||
pub fn data(&self) -> *const () {
|
pub fn data(&self) -> *const () {
|
||||||
self.data
|
self.data
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ impl RawWaker {
|
||||||
/// Get the `vtable` pointer used to create this `RawWaker`.
|
/// Get the `vtable` pointer used to create this `RawWaker`.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[unstable(feature = "waker_getters", issue = "87021")]
|
#[unstable(feature = "waker_getters", issue = "96992")]
|
||||||
pub fn vtable(&self) -> &'static RawWakerVTable {
|
pub fn vtable(&self) -> &'static RawWakerVTable {
|
||||||
self.vtable
|
self.vtable
|
||||||
}
|
}
|
||||||
|
@ -371,7 +371,7 @@ impl Waker {
|
||||||
/// Get a reference to the underlying [`RawWaker`].
|
/// Get a reference to the underlying [`RawWaker`].
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[unstable(feature = "waker_getters", issue = "87021")]
|
#[unstable(feature = "waker_getters", issue = "96992")]
|
||||||
pub fn as_raw(&self) -> &RawWaker {
|
pub fn as_raw(&self) -> &RawWaker {
|
||||||
&self.waker
|
&self.waker
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue