From fb494538a87450770be283a10a03030f096dfc6a Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Sat, 10 Feb 2024 23:22:22 +0400 Subject: [PATCH] fix unused panic-info --- Cargo.lock | 2 +- api/sys/Cargo.toml | 2 +- api/sys/src/sys/panic.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3677b41e..e71e7d90 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2834,7 +2834,7 @@ dependencies = [ [[package]] name = "playdate-sys" -version = "0.2.16" +version = "0.2.17" dependencies = [ "arrayvec", "playdate-bindgen", diff --git a/api/sys/Cargo.toml b/api/sys/Cargo.toml index d0867b0d..f2bf829b 100644 --- a/api/sys/Cargo.toml +++ b/api/sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "playdate-sys" -version = "0.2.16" +version = "0.2.17" build = "src/build.rs" readme = "README.md" description = "Low-level Playdate API bindings" diff --git a/api/sys/src/sys/panic.rs b/api/sys/src/sys/panic.rs index b1409d51..239e08ac 100644 --- a/api/sys/src/sys/panic.rs +++ b/api/sys/src/sys/panic.rs @@ -9,7 +9,7 @@ use super::proc::error; #[panic_handler] -fn panic(#[allow(unused)] panic_info: &PanicInfo) -> ! { +fn panic(panic_info: &PanicInfo) -> ! { let mut output = ArrayString::<1024>::new(); let payload = if let Some(payload) = panic_info.payload().downcast_ref::<&str>() { payload