mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-10 02:07:55 -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 std::io;
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
pub enum AssetError {
|
pub enum AssetError {
|
||||||
#[error("IO error: {0}")]
|
#[error("IO error: {0}")]
|
||||||
@@ -28,6 +29,7 @@ pub enum Asset {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Asset {
|
impl Asset {
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn path(&self) -> &str {
|
pub fn path(&self) -> &str {
|
||||||
use Asset::*;
|
use Asset::*;
|
||||||
match self {
|
match self {
|
||||||
|
|||||||
Reference in New Issue
Block a user