diff --git a/Cargo.lock b/Cargo.lock index 5900a30..b78f9e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -137,9 +137,9 @@ checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457" [[package]] name = "arrayvec" -version = "0.7.4" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" [[package]] name = "async-channel" @@ -4258,7 +4258,7 @@ dependencies = [ [[package]] name = "playdate-sys" -version = "0.4.5" +version = "0.4.6" dependencies = [ "arrayvec", "playdate-bindgen", diff --git a/api/sys/Cargo.toml b/api/sys/Cargo.toml index cecdf90..8013f84 100644 --- a/api/sys/Cargo.toml +++ b/api/sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "playdate-sys" -version = "0.4.5" +version = "0.4.6" build = "src/build.rs" readme = "README.md" description = "Low-level Playdate API bindings" diff --git a/api/sys/src/lib.rs b/api/sys/src/lib.rs index 035a721..89da109 100644 --- a/api/sys/src/lib.rs +++ b/api/sys/src/lib.rs @@ -4,8 +4,6 @@ #![allow(internal_features)] #![feature(lang_items)] #![feature(core_intrinsics)] -// panic -#![cfg_attr(feature = "panic-handler", feature(panic_info_message))] // allocator #![cfg_attr(feature = "allocator", feature(alloc_error_handler))] #![cfg_attr(feature = "allocator", feature(allocator_api))] @@ -122,13 +120,10 @@ mod entry_point_ctrl { impl FromResidual> for EventLoopCtrl { #[track_caller] fn from_residual(residual: Result) -> Self { - if let Err(err) = residual { - crate::println!("Error: {err}"); - // panic!("{err}"); - Self::Stop - } else { - Self::Continue - } + let Err(err) = residual; + crate::println!("Error: {err}"); + // panic!("{err}"); + Self::Stop } } } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 9fa93ae..cebf6f9 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2024-07-15" +channel = "nightly-2024-09-07" profile = "minimal" targets = ["thumbv7em-none-eabihf"] components = [