mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-25 09:46:49 +00:00
fix: Move extern crate alloc
to lib.rs
This commit is contained in:
parent
f789f9d4f6
commit
0d90cb07b9
2 changed files with 2 additions and 4 deletions
|
@ -230,6 +230,8 @@
|
||||||
#![doc(html_logo_url = "https://async.rs/images/logo--hero.svg")]
|
#![doc(html_logo_url = "https://async.rs/images/logo--hero.svg")]
|
||||||
#![recursion_limit = "2048"]
|
#![recursion_limit = "2048"]
|
||||||
|
|
||||||
|
extern crate alloc;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
#[cfg(feature = "alloc")]
|
|
||||||
extern crate alloc;
|
|
||||||
|
|
||||||
#[cfg(feature = "alloc")]
|
|
||||||
use alloc::string::String;
|
use alloc::string::String;
|
||||||
|
|
||||||
/// Calls a function and aborts if it panics.
|
/// Calls a function and aborts if it panics.
|
||||||
|
|
Loading…
Reference in a new issue