mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +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")]
|
||||
#![recursion_limit = "2048"]
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
#[macro_use]
|
||||
mod utils;
|
||||
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
#[cfg(feature = "alloc")]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(feature = "alloc")]
|
||||
use alloc::string::String;
|
||||
|
||||
/// Calls a function and aborts if it panics.
|
||||
|
|
Loading…
Reference in a new issue