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:
parent
5c4a180913
commit
f576a39760
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue