Skip to content

fix clippy issues#1373

Closed
bird-dancer wants to merge 2 commits intoZokrates:developfrom
bird-dancer:develop
Closed

fix clippy issues#1373
bird-dancer wants to merge 2 commits intoZokrates:developfrom
bird-dancer:develop

Conversation

@bird-dancer
Copy link

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 rust-lang/rust#63649 and rust-lang/rust#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 wasm-bindgen/wasm-bindgen#3031 .

This pr also fixes the following clippy issues:

  • use contains_key instead of get().is_some()
  • implement Display instead of ToString for G2AFFINE
  • don't use enumerate when index is dropped
  • replace legacy function isize::max_value with isize::Max

use contains_key instead of get().is_some()
implement Display instead of ToString for G2AFFINE
don't use enumerate when index is dropped
replace legacy function isize::max_value with isize::Max
JsValue::from_serde and JsValue::into_serde are deprecated use serde-wasm-bindgen instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant