Remove extern crate statements (#3310)

This commit is contained in:
daxpedda
2023-12-25 09:25:09 +01:00
committed by GitHub
parent 61a873d79a
commit 28a811bbba
36 changed files with 54 additions and 26 deletions

View File

@@ -9,7 +9,7 @@ use wasm_bindgen::prelude::wasm_bindgen;
use wasm_bindgen::{JsCast, JsValue};
use web_sys::{KeyboardEvent, MouseEvent, PointerEvent, WheelEvent};
bitflags! {
bitflags::bitflags! {
// https://www.w3.org/TR/pointerevents3/#the-buttons-property
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct ButtonsState: u16 {
@@ -178,7 +178,7 @@ pub fn key_location(event: &KeyboardEvent) -> KeyLocation {
KeyboardEvent::DOM_KEY_LOCATION_NUMPAD => KeyLocation::Numpad,
KeyboardEvent::DOM_KEY_LOCATION_STANDARD => KeyLocation::Standard,
location => {
warn!("Unexpected key location: {location}");
log::warn!("Unexpected key location: {location}");
KeyLocation::Standard
}
}

View File

@@ -1,4 +1,5 @@
use js_sys::{Array, Object};
use log::warn;
use wasm_bindgen::prelude::{wasm_bindgen, Closure};
use wasm_bindgen::{JsCast, JsValue};
use web_sys::{