We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0598c66 commit f899af5Copy full SHA for f899af5
futures-core/src/future/future_obj.rs
@@ -126,7 +126,7 @@ impl<T> Future for FutureObj<'_, T> {
126
#[inline]
127
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<T> {
128
let pinned_field: Pin<&mut LocalFutureObj<'_, T>> = unsafe {
129
- Pin::map_unchecked_mut(self, |x| &mut x.0)
+ self.map_unchecked_mut(|x| &mut x.0)
130
};
131
LocalFutureObj::poll(pinned_field, cx)
132
}
futures-core/src/stream/mod.rs
@@ -167,7 +167,7 @@ mod if_alloc {
167
self: Pin<&mut Self>,
168
cx: &mut Context<'_>,
169
) -> Poll<Option<S::Item>> {
170
- unsafe { Pin::map_unchecked_mut(self, |x| &mut x.0) }.poll_next(cx)
+ unsafe { self.map_unchecked_mut(|x| &mut x.0) }.poll_next(cx)
171
172
173
0 commit comments