Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 7974a67

Browse files
committed
update wasm-bindgen to latest
1 parent 43355c0 commit 7974a67

File tree

3 files changed

+25
-16
lines changed

3 files changed

+25
-16
lines changed

Cargo.lock

Lines changed: 21 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ js-sys = "0.3.72"
1515
jwt-compact = { version = "0.8.0", features = ["ciborium", "ed25519-dalek"] }
1616
serde = { version = "1.0.214", features = ["derive"] }
1717
thiserror = "2"
18-
wasm-bindgen = "0.2.95"
18+
wasm-bindgen = "0.2.100"
1919

2020
[profile.release]
2121
lto = true

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ impl core::fmt::Display for AppError {
6868
}
6969

7070
// https://rustwasm.github.io/wasm-bindgen/reference/types/result.html
71-
impl Into<JsValue> for AppError {
72-
fn into(self) -> JsValue {
73-
JsValue::from(js_sys::Error::new(&self.reason))
71+
impl From<AppError> for JsValue {
72+
fn from(value: AppError) -> Self {
73+
JsValue::from(js_sys::Error::new(&value.reason))
7474
}
7575
}
7676

0 commit comments

Comments
 (0)