Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into systemtime
Browse files Browse the repository at this point in the history
  • Loading branch information
wngr committed Sep 30, 2021
2 parents 858c708 + c7d8e52 commit c59ec90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "instant"
version = "0.1.10"
version = "0.1.11"
authors = ["sebcrozet <[email protected]>"]
description = "A partial replacement for std::time::Instant that works on WASM too."
repository = "https://github.com/sebcrozet/instant"
Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ cfg_if::cfg_if! {
not(any(target_arch = "wasm32", target_arch = "asmjs")),
not(any(feature = "stdweb", feature = "wasm-bindgen"))
))]
#[cfg(feature = "now")]
pub use crate::native::SystemTime;

#[cfg(all(
any(target_arch = "wasm32", target_arch = "asmjs"),
any(feature = "stdweb", feature = "wasm-bindgen")
))]
#[cfg(feature = "now")]
pub use crate::wasm::SystemTime;

pub use std::time::Duration;

0 comments on commit c59ec90

Please sign in to comment.