aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/audio/sound_effects.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-06-19 15:26:41 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-06-19 15:26:41 +0200
commitf12b40d09d77f75e5349b8acd2369e79ffa01122 (patch)
tree50187343fbb4c1c7b80071369983bb79b9dc468c /mumd/src/audio/sound_effects.rs
parentee89022431c54eae1f64099439a23cd316a0c7d3 (diff)
downloadmum-f12b40d09d77f75e5349b8acd2369e79ffa01122.tar.gz
check correct file extension
Diffstat (limited to 'mumd/src/audio/sound_effects.rs')
-rw-r--r--mumd/src/audio/sound_effects.rs4
1 files changed, 2 insertions, 2 deletions
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<Self, Self::Error> {
match s {
- ".ogg" => Ok(AudioFileKind::Ogg),
- ".wav" => Ok(AudioFileKind::Wav),
+ "ogg" => Ok(AudioFileKind::Ogg),
+ "wav" => Ok(AudioFileKind::Wav),
_ => Err(()),
}
}