Fix string package for no_std.
This commit is contained in:
parent
4d9aad816c
commit
32985c9480
@ -126,12 +126,12 @@ gen_functions!(print_array => to_debug(Array));
|
|||||||
#[export_fn]
|
#[export_fn]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn print_empty_string() -> ImmutableString {
|
fn print_empty_string() -> ImmutableString {
|
||||||
String::new().into()
|
"".to_string().into()
|
||||||
}
|
}
|
||||||
#[export_fn]
|
#[export_fn]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn print_unit(_x: ()) -> ImmutableString {
|
fn print_unit(_x: ()) -> ImmutableString {
|
||||||
String::new().into()
|
"".to_string().into()
|
||||||
}
|
}
|
||||||
#[export_fn]
|
#[export_fn]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
Loading…
Reference in New Issue
Block a user