Fix no_std build.
This commit is contained in:
parent
df1dd5190e
commit
3340760b35
@ -21,7 +21,7 @@ use crate::stdlib::{
|
|||||||
boxed::Box,
|
boxed::Box,
|
||||||
fmt,
|
fmt,
|
||||||
ops::{Deref, DerefMut},
|
ops::{Deref, DerefMut},
|
||||||
string::String,
|
string::{String, ToString},
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(not(feature = "no_closure"))]
|
#[cfg(not(feature = "no_closure"))]
|
||||||
@ -531,7 +531,7 @@ impl Dynamic {
|
|||||||
/// assert_eq!(result.type_name(), "i64");
|
/// assert_eq!(result.type_name(), "i64");
|
||||||
/// assert_eq!(result.to_string(), "42");
|
/// 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.type_name(), "string");
|
||||||
/// assert_eq!(result.to_string(), "hello");
|
/// assert_eq!(result.to_string(), "hello");
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user