Skip to content

Commit ea3bf5a

Browse files
committed
merge fixes
1 parent 24f2dcb commit ea3bf5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/serialization_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ macro_rules! to_from_json {
116116

117117
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))]
118118
pub fn to_js_value(&self) -> Result<JsValue, JsError> {
119-
JsValue::from_serde(&self)
119+
serde_wasm_bindgen::to_value(&self)
120120
.map_err(|e| JsError::from_str(&format!("to_js_value: {}", e)))
121121
}
122122

0 commit comments

Comments
 (0)