web: Fix must_use warning on AudioContext::decode_audio_data

web-sys 0.3.34 added `must_use` to `Promise`. Add `let _ =` to
squlech this warning.
This commit is contained in:
Mike Welsh 2020-01-06 12:38:20 -08:00
parent 5c4a180913
commit f576a39760
1 changed files with 2 additions and 1 deletions

View File

@ -469,7 +469,8 @@ impl WebAudioBackend {
log::info!("Error decoding MP3 audio");
NUM_SOUNDS_LOADING.with(|n| n.set(n.get() - 1));
}) as Box<dyn FnMut()>);
self.context
let _ = self
.context
.decode_audio_data_with_success_callback_and_error_callback(
&array_buffer,
success_closure.as_ref().unchecked_ref(),