Skip to content

Commit 4f6db07

Browse files
committed
fixed warnings in examples on wasm and ios targets
1 parent e04c086 commit 4f6db07

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ios-example/Rust-TinyAudioExample/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![cfg(target_os = "ios")]
22
use tinyaudio::prelude::*;
3+
4+
#[allow(static_mut_refs)]
35
static mut DEVICE_HANDLE: Option<OutputDevice> = None;
46

57
#[no_mangle]

wasm-examples/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern "C" {
1414
fn stack(error: &Error) -> String;
1515
}
1616

17-
fn custom_panic_hook(info: &std::panic::PanicInfo) {
17+
fn custom_panic_hook(info: &std::panic::PanicHookInfo) {
1818
let mut msg = info.to_string();
1919
msg.push_str("\n\nStack:\n\n");
2020
let e = Error::new();

0 commit comments

Comments
 (0)