Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0d90cb0

Browse files
committed
fix: Move extern crate alloc to lib.rs
1 parent f789f9d commit 0d90cb0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎src/lib.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@
230230
#![doc(html_logo_url = "https://async.rs/images/logo--hero.svg")]
231231
#![recursion_limit = "2048"]
232232

233+
extern crate alloc;
234+
233235
#[macro_use]
234236
mod utils;
235237

‎src/utils.rs‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
#[cfg(feature = "alloc")]
2-
extern crate alloc;
3-
4-
#[cfg(feature = "alloc")]
51
use alloc::string::String;
62

73
/// Calls a function and aborts if it panics.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /