Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ travis-ci = { repository = "ihrwein/backoff" }
[dependencies]
async_std_1 = { package = "async-std", version = "1.9", optional = true }
futures-core = { version = "0.3.8", default-features = false, optional = true }
instant = "0.1"
web-time = "1"
pin-project-lite = { version = "0.2.7", optional = true }
rand = "0.8"
getrandom = "0.2"
Expand All @@ -33,7 +33,7 @@ futures-executor = "0.3"

[features]
default = []
wasm-bindgen = ["instant/wasm-bindgen", "getrandom/js"]
wasm-bindgen = ["getrandom/js"]
futures = ["futures-core", "pin-project-lite"]
tokio = ["futures", "tokio_1"]
async-std = ["futures", "async_std_1"]
Expand Down
2 changes: 1 addition & 1 deletion src/clock.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use instant::Instant;
use web_time::Instant;

/// Clock returns the current time.
pub trait Clock {
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::error;
use std::fmt;

use instant::Duration;
use std::time::Duration;

/// Error is the error value in an operation's
/// result.
Expand Down
2 changes: 1 addition & 1 deletion src/exponential.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use instant::Instant;
use web_time::Instant;
use std::marker::PhantomData;
use std::time::Duration;

Expand Down
3 changes: 1 addition & 2 deletions tests/exponential.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
extern crate backoff;
extern crate instant;

use backoff::backoff::Backoff;
use backoff::exponential::ExponentialBackoff;
use backoff::{Clock, SystemClock};

use instant::Instant;
use web_time::Instant;
use std::cell::RefCell;
use std::time::Duration;

Expand Down