mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-25 01:01:34 +11:00
Fix warning with non-constant string
This commit is contained in:
parent
a3e5187457
commit
068bc95fe7
|
@ -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))]
|
||||||
|
|
Loading…
Reference in a new issue