mirror of https://github.com/fafhrd91/actix-net
use alloc imports
This commit is contained in:
parent
4b2e1b8892
commit
fe01601ff3
|
@ -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;
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue