Skip to content

Commit

Permalink
fix from_residual, remove stabilised feature, update toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Sep 7, 2024
1 parent f62553e commit 4caba5b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
13 changes: 4 additions & 9 deletions api/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down Expand Up @@ -122,13 +120,10 @@ mod entry_point_ctrl {
impl<E: Display> FromResidual<Result<Infallible, E>> for EventLoopCtrl {
#[track_caller]
fn from_residual(residual: Result<Infallible, E>) -> 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
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2024-07-15"
channel = "nightly-2024-09-07"
profile = "minimal"
targets = ["thumbv7em-none-eabihf"]
components = [
Expand Down

0 comments on commit 4caba5b

Please sign in to comment.