Replace std::time::Instant with trice::Instant

This commit is contained in:
Tobie Morgan Hitchcock 2023-01-09 09:33:28 +00:00
parent f5739cba48
commit b357e24e44
3 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,6 @@ use std::mem;
use std::pin::Pin;
use std::sync::atomic::AtomicI64;
use std::sync::Arc;
use std::time::Instant;
use tokio::net::TcpStream;
use tokio::time;
use tokio::time::MissedTickBehavior;
@ -51,6 +50,7 @@ use tokio_tungstenite::tungstenite::Message;
use tokio_tungstenite::Connector;
use tokio_tungstenite::MaybeTlsStream;
use tokio_tungstenite::WebSocketStream;
use trice::Instant;
use url::Url;
type WsResult<T> = std::result::Result<T, WsError>;

View file

@ -39,10 +39,10 @@ use std::marker::PhantomData;
use std::pin::Pin;
use std::sync::atomic::AtomicI64;
use std::sync::Arc;
use std::time::Instant;
use tokio::time;
use tokio::time::MissedTickBehavior;
use tokio_stream::wrappers::IntervalStream;
use trice::Instant;
use wasm_bindgen_futures::spawn_local;
use ws_stream_wasm::WsEvent;
use ws_stream_wasm::WsMessage as Message;

View file

@ -1,6 +1,6 @@
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use std::time::Instant;
use trice::Instant;
/// A 'static view into the cancellation status of a Context.
#[derive(Clone, Debug, Default)]