Skip to content

Commit 68d1652

Browse files
use new_const
1 parent da915c2 commit 68d1652

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

program/Cargo.lock

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

program/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn my_panic(panic_info: &core::panic::PanicInfo) -> ! {
2020
let message = unsafe { panic_info.message().unwrap_unchecked() };
2121
#[rustversion::since(2024-06-12)]
2222
let message = panic_info.message();
23-
let mut debug_msg = ArrayString::<1024>::new();
23+
let mut debug_msg = ArrayString::<1024>::new_const();
2424

2525
let _ = write!(&mut debug_msg, "panicked with '{message}'");
2626

project/rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
22
# try nightly-2024-06-{12,13}
3-
channel = "nightly-2024-06-13"
3+
channel = "nightly-2024-06-12"

0 commit comments

Comments
 (0)