Commit a7a3172f authored by Rahix's avatar Rahix 🦀

Merge branch 'fix-some-lints' into 'master'

See merge request engel-simulator-2020/game!52
parents 1a0c746e f42debdb
use core::panic;
use js_sys;
use wasm_bindgen::prelude::*;
pub mod angel_shifts;
......
use nalgebra;
pub struct Camera {
pub position: nalgebra::Point2<f64>,
pub size: nalgebra::Vector2<f64>,
......
......@@ -2,7 +2,6 @@ use crate::utils::JsError;
use anyhow::Context;
use std::collections::HashMap;
use wasm_bindgen::JsCast;
use web_sys;
fn get_hex_color_format(value: &str) -> u32 {
let valid_characters = [
......
use js_sys;
use std::collections;
use wasm_bindgen::prelude::*;
use wasm_bindgen::JsCast;
use wasm_bindgen_futures;
use web_sys;
use crate::colliders;
use crate::components;
......@@ -170,7 +167,7 @@ impl SvgLevel {
pub async fn load_from_svg_file(url: &str) -> Result<Self, JsValue> {
let svg_loader = SvgLoader::load_svg(url).await;
if svg_loader.verify_viewbox() == false {
if !svg_loader.verify_viewbox() {
return Err(JsValue::from_str("SVG Viewbox and SVG size don't match"));
}
......@@ -212,7 +209,7 @@ impl SvgLevel {
spawnpoints
.entry(spawntype)
.or_insert_with(|| vec![])
.or_insert_with(Vec::new)
.push(pos);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment