use alloc imports

This commit is contained in:
Rob Ede 2021-03-29 11:50:31 +01:00
parent 4b2e1b8892
commit fe01601ff3
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,7 @@
//! Task-notifying counter.
use core::cell::Cell;
use core::task;
use std::rc::Rc;
use alloc::rc::Rc;
use core::{cell::Cell, task};
use local_waker::LocalWaker;

View File

@ -3,9 +3,9 @@
use core::{
fmt,
future::Future,
pin::Pin,
task::{Context, Poll},
};
use std::pin::Pin;
/// Create a future driven by the provided function that receives a task context.
pub fn poll_fn<F, T>(f: F) -> PollFn<F>

View File

@ -5,6 +5,8 @@
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
extern crate alloc;
pub mod counter;
pub mod future;
pub mod timeout;