Commit 9ec449cd authored by Rahix's avatar Rahix 🦀

svg-loader: Fix two clippy warnings

parent 1a0c746e
......@@ -170,7 +170,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 +212,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