From 068bc95fe7d6aba43135c8f5b874d318e95a2c16 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 5 Mar 2022 19:35:19 +0000 Subject: [PATCH] Fix warning with non-constant string --- agb/src/display/tiled/vram_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/display/tiled/vram_manager.rs b/agb/src/display/tiled/vram_manager.rs index 1da86d9f..6253da75 100644 --- a/agb/src/display/tiled/vram_manager.rs +++ b/agb/src/display/tiled/vram_manager.rs @@ -11,7 +11,7 @@ const PALETTE_BACKGROUND: MemoryMapped1DArray = #[cfg(debug_assertions)] unsafe fn debug_unreachable_unchecked(message: &'static str) -> ! { - unreachable!(message); + unreachable!("{}", message); } #[cfg(not(debug_assertions))]