summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen/tests/wasm/futures.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/wasm-bindgen/tests/wasm/futures.rs')
-rw-r--r--vendor/wasm-bindgen/tests/wasm/futures.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/wasm-bindgen/tests/wasm/futures.rs b/vendor/wasm-bindgen/tests/wasm/futures.rs
index 7dfddf209..3679a0d48 100644
--- a/vendor/wasm-bindgen/tests/wasm/futures.rs
+++ b/vendor/wasm-bindgen/tests/wasm/futures.rs
@@ -93,9 +93,9 @@ pub struct AsyncCustomError {
pub val: JsValue,
}
-impl Into<JsValue> for AsyncCustomError {
- fn into(self) -> JsValue {
- self.val
+impl From<AsyncCustomError> for JsValue {
+ fn from(e: AsyncCustomError) -> Self {
+ e.val
}
}