Fix serde typo.
This commit is contained in:
parent
d7bfe13b3e
commit
ec19103478
@ -56,7 +56,7 @@ mod example {
|
|||||||
let result: Dynamic = engine
|
let result: Dynamic = engine
|
||||||
.eval(
|
.eval(
|
||||||
r#"
|
r#"
|
||||||
##{
|
#{
|
||||||
a: 42,
|
a: 42,
|
||||||
b: [ "hello", "world" ],
|
b: [ "hello", "world" ],
|
||||||
c: true,
|
c: true,
|
||||||
|
@ -23,14 +23,6 @@ use serde::de::{EnumAccess, VariantAccess};
|
|||||||
|
|
||||||
use crate::stdlib::{any::type_name, boxed::Box, fmt, string::ToString};
|
use crate::stdlib::{any::type_name, boxed::Box, fmt, string::ToString};
|
||||||
|
|
||||||
#[cfg(not(feature = "no_std"))]
|
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
|
||||||
use crate::stdlib::time::Instant;
|
|
||||||
|
|
||||||
#[cfg(not(feature = "no_std"))]
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
|
||||||
use instant::Instant;
|
|
||||||
|
|
||||||
/// Deserializer for `Dynamic` which is kept as a reference.
|
/// Deserializer for `Dynamic` which is kept as a reference.
|
||||||
///
|
///
|
||||||
/// The reference is necessary because the deserialized type may hold references
|
/// The reference is necessary because the deserialized type may hold references
|
||||||
|
Loading…
Reference in New Issue
Block a user