From 300a87df72a81838c2955d3c1a41f46f7a6b98a7 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Sun, 11 Apr 2021 16:34:50 +0100 Subject: [PATCH] add underscore to show unused variable --- examples/panic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/panic.rs b/examples/panic.rs index b7256aee..9dec5f41 100644 --- a/examples/panic.rs +++ b/examples/panic.rs @@ -20,7 +20,7 @@ fn main(_argc: isize, _argv: *const *const u8) -> isize { } if input.is_just_pressed(gba::input::Button::B) { #[allow(arithmetic_overflow)] - let p = core::i32::MAX + 1; + let _p = core::i32::MAX + 1; } } }