Skip to content

Commit

Permalink
Instant crate was deprecated, use web-time now.
Browse files Browse the repository at this point in the history
  • Loading branch information
bladecoder committed Nov 13, 2024
1 parent a3f1e37 commit 4b79b61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ serde_json = "1.0.93"
strum = { version = "0.26.3", features = ["derive"] }
as-any = "0.3.0"
rand = "0.8.5"
instant = "0.1.12"
web-time = "1.1.0"
stringreader = "0.1.1"

[features]
stream-json-parser = []
stdweb = ["instant/stdweb"]
wasm-bindgen = ["instant/wasm-bindgen"]
2 changes: 1 addition & 1 deletion lib/src/story/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Story {

// Start timing (only when necessary)
let duration_stopwatch = match self.async_continue_active {
true => Some(instant::Instant::now()),
true => Some(web_time::Instant::now()),
false => None,
};

Expand Down

0 comments on commit 4b79b61

Please sign in to comment.