Fix or suppress {primitive}::new warnings in tests

Constructing boxed primitives was deprecated in #1447.

Some tests have been still using these methods, so this PR either updates them to use newly added {primitive}::from implementations or adds `#[allow(deprecated)]` where necessary.
This commit is contained in:
Ingvar Stepanyan
2019-04-17 18:25:45 +01:00
parent 10cbc789a8
commit d7650863ab
4 changed files with 18 additions and 18 deletions

View File

@ -1,5 +1,5 @@
use js_sys::*;
use wasm_bindgen::{prelude::*, JsCast};
use wasm_bindgen::prelude::*;
use wasm_bindgen_test::*;
#[wasm_bindgen(module = "tests/wasm/Reflect.js")]