Ensure std::time::Instant is replaced with trice::Instant everywhere

This commit is contained in:
Tobie Morgan Hitchcock 2023-01-10 17:42:47 +00:00
parent 7fabf54593
commit db4ac267c2
3 changed files with 5 additions and 4 deletions

4
Cargo.lock generated
View file

@ -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",

View file

@ -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]

View file

@ -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<Value> for Cow<'a, Value> {
fn from(v: Value) -> Cow<'a, Value> {