diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-06-19 15:26:41 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-06-19 15:26:41 +0200 |
| commit | f12b40d09d77f75e5349b8acd2369e79ffa01122 (patch) | |
| tree | 50187343fbb4c1c7b80071369983bb79b9dc468c /mumd/src/audio | |
| parent | ee89022431c54eae1f64099439a23cd316a0c7d3 (diff) | |
| download | mum-f12b40d09d77f75e5349b8acd2369e79ffa01122.tar.gz | |
check correct file extension
Diffstat (limited to 'mumd/src/audio')
| -rw-r--r-- | mumd/src/audio/sound_effects.rs | 4 |
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(()), } } |
