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"); ///