diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-03 19:17:23 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-03 19:17:23 +0100 |
| commit | 3692561f46cad490917683b17d5753433e26a38b (patch) | |
| tree | 3e7cb419e8b47544359a4c2b4320478b87756222 /mumd | |
| parent | fc208994a1e1228b79091303920fc90e066a087f (diff) | |
| download | mum-3692561f46cad490917683b17d5753433e26a38b.tar.gz | |
merge maps
Diffstat (limited to 'mumd')
| -rw-r--r-- | mumd/src/audio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs index fe0ce40..548618f 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -209,8 +209,8 @@ impl Audio { pub fn load_sound_effects(&mut self, sound_effects: &Vec<SoundEffect>) { let overrides: HashMap<_, _> = sound_effects .iter() - .map(|sound_effect| { (&sound_effect.event, &sound_effect.file) }) - .filter_map(|(event, file)| { + .filter_map(|sound_effect| { + let (event, file) = (&sound_effect.event, &sound_effect.file); let event = match event.as_str() { "server_connect" => NotificationEvents::ServerConnect, "server_disconnect" => NotificationEvents::ServerDisconnect, |
