add underscore to show unused variable

This commit is contained in:
Corwin Kuiper 2021-04-11 16:34:50 +01:00 committed by Corwin
parent 9ea3ece74b
commit 300a87df72

View file

@ -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;
}
}
}