Skip to content

Commit 7c4c02f

Browse files
committed
Amend
1 parent 0834e29 commit 7c4c02f

File tree

1 file changed

+3
-1
lines changed
  • crates/boilerplate-macros/src

1 file changed

+3
-1
lines changed

crates/boilerplate-macros/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ pub fn boilerplate(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
2525

2626
quote! {
2727
{
28+
extern crate alloc;
29+
2830
use ::core::fmt::Write;
2931

3032
let boilerplate_text = &[ #(#text),* ];
31-
let mut boilerplate_output = ::alloc::string::String::new();
33+
let mut boilerplate_output = alloc::string::String::new();
3234

3335
#body
3436

0 commit comments

Comments
 (0)