Fix warning in release mode

This commit is contained in:
Gwilym Kuiper 2022-03-05 19:52:57 +00:00
parent ba1c2e3eaf
commit 803527be23

View file

@ -12,7 +12,7 @@ unsafe fn debug_unreachable_unchecked(message: &'static str) -> ! {
}
#[cfg(not(debug_assertions))]
const unsafe fn debug_unreachable_unchecked(message: &'static str) -> ! {
const unsafe fn debug_unreachable_unchecked(_message: &'static str) -> ! {
use core::hint::unreachable_unchecked;
unreachable_unchecked();