From 32985c948069c060034e89e1e2002812e299428b Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 30 Aug 2020 23:18:47 +0800 Subject: [PATCH] Fix string package for no_std. --- src/packages/string_basic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/string_basic.rs b/src/packages/string_basic.rs index 288fc115..d6f57c02 100644 --- a/src/packages/string_basic.rs +++ b/src/packages/string_basic.rs @@ -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)]