diff --git a/warzone/crates/warzone-wasm/Cargo.toml b/warzone/crates/warzone-wasm/Cargo.toml index 14ce1f0..cd9a046 100644 --- a/warzone/crates/warzone-wasm/Cargo.toml +++ b/warzone/crates/warzone-wasm/Cargo.toml @@ -21,6 +21,4 @@ x25519-dalek.workspace = true ed25519-dalek.workspace = true uuid = { version = "1", features = ["v4", "serde", "js"] } -[profile.release] -opt-level = "s" -lto = true +# profile.release is set at workspace root diff --git a/warzone/crates/warzone-wasm/src/lib.rs b/warzone/crates/warzone-wasm/src/lib.rs index 3db5cbc..6afa0db 100644 --- a/warzone/crates/warzone-wasm/src/lib.rs +++ b/warzone/crates/warzone-wasm/src/lib.rs @@ -226,7 +226,7 @@ pub fn self_test() -> Result { public_key: *bob_otpks[0].public.as_bytes(), }), }; - let bob_bundle_bytes = bincode::serialize(&bob_bundle) + let _bob_bundle_bytes = bincode::serialize(&bob_bundle) .map_err(|e| JsValue::from_str(&e.to_string()))?; // Alice initiates X3DH and encrypts