Skip to content

Commit 4b79b61

Browse files
committed
Instant crate was deprecated, use web-time now.
1 parent a3f1e37 commit 4b79b61

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ serde_json = "1.0.93"
2222
strum = { version = "0.26.3", features = ["derive"] }
2323
as-any = "0.3.0"
2424
rand = "0.8.5"
25-
instant = "0.1.12"
25+
web-time = "1.1.0"
2626
stringreader = "0.1.1"
2727

2828
[features]
2929
stream-json-parser = []
30-
stdweb = ["instant/stdweb"]
31-
wasm-bindgen = ["instant/wasm-bindgen"]

lib/src/story/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl Story {
9595

9696
// Start timing (only when necessary)
9797
let duration_stopwatch = match self.async_continue_active {
98-
true => Some(instant::Instant::now()),
98+
true => Some(web_time::Instant::now()),
9999
false => None,
100100
};
101101

0 commit comments

Comments
 (0)