From acb6f468e6264c0c9c309d613ae984183f8d4a1e Mon Sep 17 00:00:00 2001 From: GBA bot Date: Sat, 1 Jan 2022 12:12:11 +0000 Subject: [PATCH] Fix more lints automatically --- examples/the-hat-chooses-the-wizard/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/the-hat-chooses-the-wizard/src/main.rs b/examples/the-hat-chooses-the-wizard/src/main.rs index aefb18b4..2411df1c 100644 --- a/examples/the-hat-chooses-the-wizard/src/main.rs +++ b/examples/the-hat-chooses-the-wizard/src/main.rs @@ -761,11 +761,11 @@ impl<'a, 'b, 'c> PlayingLevel<'a, 'b> { target_position.x = target_position.x.clamp( 0, - ((self.background.level.dimensions.x * 8 - (WIDTH as u32)) as i32), + (self.background.level.dimensions.x * 8 - (WIDTH as u32)) as i32, ); target_position.y = target_position.y.clamp( 0, - ((self.background.level.dimensions.y * 8 - (HEIGHT as u32)) as i32), + (self.background.level.dimensions.y * 8 - (HEIGHT as u32)) as i32, ); target_position.into()