Replace futures::future::poll_fn -> core::future::poll_fn.

This commit is contained in:
Dario Nieuwenhuis
2022-09-22 16:42:49 +02:00
parent 897b72c872
commit a0487380da
29 changed files with 34 additions and 43 deletions

View File

@ -2,6 +2,7 @@
#![no_main]
#![feature(type_alias_impl_trait)]
use core::future::poll_fn;
use core::task::Poll;
use embassy_executor::Spawner;
@ -46,7 +47,7 @@ async fn run2() {
#[embassy_executor::task]
async fn run3() {
futures::future::poll_fn(|cx| {
poll_fn(|cx| {
cx.waker().wake_by_ref();
Poll::<()>::Pending
})