mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 01:15:42 -06:00
chore: allow deadcode in asset.rs due to emscripten builds
This commit is contained in:
@@ -5,6 +5,7 @@ use std::borrow::Cow;
|
||||
use std::io;
|
||||
use thiserror::Error;
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Error, Debug)]
|
||||
pub enum AssetError {
|
||||
#[error("IO error: {0}")]
|
||||
@@ -28,6 +29,7 @@ pub enum Asset {
|
||||
}
|
||||
|
||||
impl Asset {
|
||||
#[allow(dead_code)]
|
||||
pub fn path(&self) -> &str {
|
||||
use Asset::*;
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user