Clean warnings
This commit is contained in:
parent
d6dbefde16
commit
e5cf82ef32
@ -13,7 +13,7 @@ pub mod vector;
|
|||||||
|
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
use std::time::{Duration, SystemTime};
|
use std::time::SystemTime;
|
||||||
|
|
||||||
use wasm_bindgen::prelude::*;
|
use wasm_bindgen::prelude::*;
|
||||||
use wasm_bindgen::JsCast;
|
use wasm_bindgen::JsCast;
|
||||||
@ -27,7 +27,7 @@ use crate::engine::math::now;
|
|||||||
use crate::engine::scene::{Scene, State};
|
use crate::engine::scene::{Scene, State};
|
||||||
use crate::engine::texture::{Texture, TextureManager};
|
use crate::engine::texture::{Texture, TextureManager};
|
||||||
use crate::engine::vector::Vector;
|
use crate::engine::vector::Vector;
|
||||||
use crate::{error_js, log, Result};
|
use crate::{error_js, Result};
|
||||||
|
|
||||||
macro_rules! unwrap {
|
macro_rules! unwrap {
|
||||||
($t: expr) => {{
|
($t: expr) => {{
|
||||||
@ -191,7 +191,7 @@ impl Engine {
|
|||||||
// Manage events
|
// Manage events
|
||||||
while let Some(event) = self.inputs.next() {
|
while let Some(event) = self.inputs.next() {
|
||||||
// Convert events into actions
|
// Convert events into actions
|
||||||
let mut controlable = unwrap_or_continue!(self.scene.controlable_mut());
|
let controlable = unwrap_or_continue!(self.scene.controlable_mut());
|
||||||
|
|
||||||
// If gamepad connected, make it control the character
|
// If gamepad connected, make it control the character
|
||||||
if let Event::GamepadConnected(id) = event {
|
if let Event::GamepadConnected(id) = event {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user