diff --git a/Cargo.lock b/Cargo.lock index cad6b95d..9d372943 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3881,9 +3881,9 @@ dependencies = [ [[package]] name = "trice" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27a3a110aba3d0ffc4dac3eedbce006dce1a3db5b484c94313940b999c9409ef" +checksum = "6fd6accd04d9bcc587c77f2df66cddaba0d4247dcdf9127c74e3c7a461568132" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 8a624ce6..78fe2d03 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -95,7 +95,7 @@ thiserror = "1.0.37" tikv = { version = "0.1.0", package = "tikv-client", optional = true } tokio-stream = { version = "0.1.11", optional = true } tokio-util = { version = "0.7.4", optional = true, features = ["compat"] } -trice = "0.1.0" +trice = "0.2.0" url = "2.3.1" [dependencies.js] diff --git a/lib/src/ctx/context.rs b/lib/src/ctx/context.rs index f2030e3e..191947f4 100644 --- a/lib/src/ctx/context.rs +++ b/lib/src/ctx/context.rs @@ -7,7 +7,8 @@ use std::collections::HashMap; use std::fmt; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; -use std::time::{Duration, Instant}; +use std::time::Duration; +use trice::Instant; impl<'a> From for Cow<'a, Value> { fn from(v: Value) -> Cow<'a, Value> {