cargo fmt
This commit is contained in:
parent
b8bfb31818
commit
57c95464c7
|
@ -11,8 +11,8 @@ extern "C" {
|
||||||
|
|
||||||
pub fn now_utc() -> OffsetDateTime {
|
pub fn now_utc() -> OffsetDateTime {
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
return OffsetDateTime::from_unix_timestamp_nanos((unix_millis_now() * 1_000_000f64) as i128).expect("time outside supported range");
|
return OffsetDateTime::from_unix_timestamp_nanos((unix_millis_now() * 1_000_000f64) as i128)
|
||||||
|
.expect("time outside supported range");
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
return OffsetDateTime::now_utc();
|
return OffsetDateTime::now_utc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue