Fix warning with non-constant string

This commit is contained in:
Gwilym Kuiper 2022-03-05 19:35:19 +00:00
parent a3e5187457
commit 068bc95fe7

View file

@ -11,7 +11,7 @@ const PALETTE_BACKGROUND: MemoryMapped1DArray<u16, 256> =
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
unsafe fn debug_unreachable_unchecked(message: &'static str) -> ! { unsafe fn debug_unreachable_unchecked(message: &'static str) -> ! {
unreachable!(message); unreachable!("{}", message);
} }
#[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]