Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix clippy issues #1373

Closed
wants to merge 2 commits into from
Closed

fix clippy issues #1373

wants to merge 2 commits into from

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 rustwasm/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