about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-02-15 18:25:42 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-04-13 13:17:26 +0000
commit41866bf2f4a7ca12e095ce4782445fae67ad53a4 (patch)
tree141c893939bcf7ede08899442123fc5d1fa77b64
parent4435686a486e0228df34bf9ff739c1e27c836f22 (diff)
downloadrust-41866bf2f4a7ca12e095ce4782445fae67ad53a4.tar.gz
rust-41866bf2f4a7ca12e095ce4782445fae67ad53a4.zip
Fix a couple of 2018 edition warnings
-rw-r--r--example/alloc_example.rs2
-rw-r--r--example/mod_bench.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/example/alloc_example.rs b/example/alloc_example.rs
index 4ede2fe4efe..d994e2fbc0a 100644
--- a/example/alloc_example.rs
+++ b/example/alloc_example.rs
@@ -18,7 +18,7 @@ extern "C" {
 }
 
 #[panic_handler]
-fn panic_handler(_: &core::panic::PanicInfo) -> ! {
+fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
     core::intrinsics::abort();
 }
 
diff --git a/example/mod_bench.rs b/example/mod_bench.rs
index 83eb69dd504..f15e48acc41 100644
--- a/example/mod_bench.rs
+++ b/example/mod_bench.rs
@@ -6,7 +6,7 @@
 extern "C" {}
 
 #[panic_handler]
-fn panic_handler(_: &core::panic::PanicInfo) -> ! {
+fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
     core::intrinsics::abort();
 }