Skip to content

Commit

Permalink
Fix a couple of 2018 edition warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Apr 13, 2023
1 parent 4435686 commit 41866bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/alloc_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern "C" {
}

#[panic_handler]
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
core::intrinsics::abort();
}

Expand Down
2 changes: 1 addition & 1 deletion example/mod_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
extern "C" {}

#[panic_handler]
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
core::intrinsics::abort();
}

Expand Down

0 comments on commit 41866bf

Please sign in to comment.