From f12b40d09d77f75e5349b8acd2369e79ffa01122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sat, 19 Jun 2021 15:26:41 +0200 Subject: check correct file extension --- mumd/src/audio/sound_effects.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mumd/src') diff --git a/mumd/src/audio/sound_effects.rs b/mumd/src/audio/sound_effects.rs index 8a271e0..7e4e96a 100644 --- a/mumd/src/audio/sound_effects.rs +++ b/mumd/src/audio/sound_effects.rs @@ -24,8 +24,8 @@ impl TryFrom<&str> for AudioFileKind { fn try_from(s: &str) -> Result { match s { - ".ogg" => Ok(AudioFileKind::Ogg), - ".wav" => Ok(AudioFileKind::Wav), + "ogg" => Ok(AudioFileKind::Ogg), + "wav" => Ok(AudioFileKind::Wav), _ => Err(()), } } -- cgit v1.2.1