Fix string package for no_std.

This commit is contained in:
Stephen Chung 2020-08-30 23:18:47 +08:00
parent 4d9aad816c
commit 32985c9480

View File

@ -126,12 +126,12 @@ gen_functions!(print_array => to_debug(Array));
#[export_fn]
#[inline(always)]
fn print_empty_string() -> ImmutableString {
String::new().into()
"".to_string().into()
}
#[export_fn]
#[inline(always)]
fn print_unit(_x: ()) -> ImmutableString {
String::new().into()
"".to_string().into()
}
#[export_fn]
#[inline(always)]