Skip to content

Commit

Permalink
fix: Update wasm-bindgen to 0.2.89.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Jan 8, 2024
1 parent 5cbd6b9 commit 60cd09c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 36 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ serde_json = "1.0.91"
serde-wasm-bindgen = "0.5.0"
tracing = { version = "0.1.36", default-features = false, features = ["std"] }
tracing-subscriber = { version = "0.3.14", default-features = false, features = ["registry", "std", "ansi"] }
# 0.2.88 causes breakage, per https://github.com/rustwasm/wasm-bindgen/issues/3685
wasm-bindgen = "=0.2.87"
wasm-bindgen = "0.2.89"
wasm-bindgen-futures = "0.4.33"
zeroize = "1.6.0"

Expand Down
11 changes: 0 additions & 11 deletions src/encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,6 @@ pub enum EncryptionAlgorithm {
MegolmV1AesSha2,
}

impl From<EncryptionAlgorithm> for JsValue {
fn from(value: EncryptionAlgorithm) -> Self {
use EncryptionAlgorithm::*;

match value {
OlmV1Curve25519AesSha2 => JsValue::from(0),
MegolmV1AesSha2 => JsValue::from(1),
}
}
}

impl From<EncryptionAlgorithm> for matrix_sdk_crypto::types::EventEncryptionAlgorithm {
fn from(value: EncryptionAlgorithm) -> Self {
use EncryptionAlgorithm::*;
Expand Down
13 changes: 0 additions & 13 deletions src/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,6 @@ pub enum VerificationMethod {
ReciprocateV1 = 3,
}

impl From<VerificationMethod> for JsValue {
fn from(value: VerificationMethod) -> Self {
use VerificationMethod::*;

match value {
SasV1 => JsValue::from(0),
QrCodeScanV1 => JsValue::from(1),
QrCodeShowV1 => JsValue::from(2),
ReciprocateV1 => JsValue::from(3),
}
}
}

impl TryFrom<JsValue> for VerificationMethod {
type Error = JsError;

Expand Down

0 comments on commit 60cd09c

Please sign in to comment.