From 3340760b35ce1abb6c7a65c4f977e42858c805f8 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 7 Oct 2020 11:44:06 +0800 Subject: [PATCH] Fix no_std build. --- src/any.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/any.rs b/src/any.rs index 2ef41da6..3dfbad6b 100644 --- a/src/any.rs +++ b/src/any.rs @@ -21,7 +21,7 @@ use crate::stdlib::{ boxed::Box, fmt, ops::{Deref, DerefMut}, - string::String, + string::{String, ToString}, }; #[cfg(not(feature = "no_closure"))] @@ -531,7 +531,7 @@ impl Dynamic { /// assert_eq!(result.type_name(), "i64"); /// assert_eq!(result.to_string(), "42"); /// - /// let result = Dynamic::from("hello".to_string()); + /// let result = Dynamic::from("hello"); /// assert_eq!(result.type_name(), "string"); /// assert_eq!(result.to_string(), "hello"); ///