Skip to content

Commit fb9b494

Browse files
committed
add datetime and utc imports to wasm-impls module as they were erroneously left out of the last commit
1 parent bf560df commit fb9b494

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/datetime/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,6 +1971,8 @@ impl From<DateTime<Utc>> for js_sys::Date {
19711971
not(any(target_os = "emscripten", target_os = "wasi", target_os = "linux"))
19721972
))]
19731973
mod wasm_impls {
1974+
use crate::{DateTime, Utc};
1975+
19741976
impl wasm_bindgen::convert::FromWasmAbi for DateTime<Utc> {
19751977
type Abi = <js_sys::Date as wasm_bindgen::convert::FromWasmAbi>::Abi;
19761978
unsafe fn from_abi(js: Self::Abi) -> Self {

0 commit comments

Comments
 (0)