refactor(web): satisfy unused_qualifications (#6121)

This commit is contained in:
Erich Gubler 2024-08-15 17:56:12 +01:00 committed by GitHub
parent 23e7846400
commit abc56417bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,12 +95,8 @@ impl Instance {
fn create_context_options() -> js_sys::Object {
let context_options = js_sys::Object::new();
js_sys::Reflect::set(
&context_options,
&"antialias".into(),
&wasm_bindgen::JsValue::FALSE,
)
.expect("Cannot create context options");
js_sys::Reflect::set(&context_options, &"antialias".into(), &JsValue::FALSE)
.expect("Cannot create context options");
context_options
}
}