From ec191034785752e0ebf2f5aa76ad18c8547199a8 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 7 Oct 2020 15:51:00 +0800 Subject: [PATCH] Fix serde typo. --- examples/serde.rs | 2 +- src/serde/de.rs | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/examples/serde.rs b/examples/serde.rs index 52c39b51..3cb68459 100644 --- a/examples/serde.rs +++ b/examples/serde.rs @@ -56,7 +56,7 @@ mod example { let result: Dynamic = engine .eval( r#" - ##{ + #{ a: 42, b: [ "hello", "world" ], c: true, diff --git a/src/serde/de.rs b/src/serde/de.rs index 69a45765..0cf181ba 100644 --- a/src/serde/de.rs +++ b/src/serde/de.rs @@ -23,14 +23,6 @@ use serde::de::{EnumAccess, VariantAccess}; 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. /// /// The reference is necessary because the deserialized type may hold references