Zokrates / ZoKrates

A toolbox for zkSNARKs on Ethereum
https://zokrates.github.io
GNU Lesser General Public License v3.0
1.8k stars 360 forks source link

fix clippy issues #1373

Closed bird-dancer closed 2 weeks ago

bird-dancer commented 2 months ago

Due to an ABI mismatch between clang and rust, wasm-bindgen older then 2.88 will become incompatible with the rust compiler at some point. See https://github.com/rust-lang/rust/pull/63649 and https://github.com/rust-lang/rust/issues/71871 . In later versions of wasm-bindgen JsValue::from_serde and JsValue::into_serde are deprecated and using serde-wasm-bindgen is suggested instead. See https://github.com/rustwasm/wasm-bindgen/pull/3031 .

This pr also fixes the following clippy issues: