Skip to content

Commit f50c0c4

Browse files
authored
Apply suggestions from code review
Co-Authored-By: cramertj <cramertaylorj@gmail.com>
1 parent 4825174 commit f50c0c4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

text/0000-futures.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,8 @@ pub trait Future {
386386
/// [`Poll::Pending`]: ../task/enum.Poll.html#variant.Pending
387387
/// [`Poll::Ready(val)`]: ../task/enum.Poll.html#variant.Ready
388388
/// [`Waker`]: ../task/struct.Waker.html
389-
/// [`Waker::into_waker`]: ../task/struct.Waker.html#method.into_waker
390389
/// [`Waker::wake`]: ../task/struct.Waker.html#method.wake
391-
fn poll(self: Pin<&mut Self>, lw: &Waker) -> Poll<Self::Output>;
390+
fn poll(self: Pin<&mut Self>, waker: &Waker) -> Poll<Self::Output>;
392391
}
393392
```
394393

@@ -578,7 +577,7 @@ thread_local! {
578577
static VTABLE: &RawWakerVTable = &RawWakerVTable {
579578
clone: |data: *const ()| RawWaker { data, vtable: VTABLE, },
580579
wake: |data: *const ()| EXECUTOR.borrow_mut().as_mut().expect(...).work_queue.push(data as usize),
581-
drop: |_: *const ()| {},
580+
drop,
582581
};
583582
```
584583

0 commit comments

Comments
 (0)