Skip to content

Commit ca07ef7

Browse files
committed
remove mut
1 parent ad61336 commit ca07ef7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/input/systems.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pub fn button_input(
132132
}
133133
ToolType::DrawWall => match ui_state.wall_type {
134134
WallType::Rectangle => {
135-
if let Some((mut x, mut y)) =
135+
if let Some((x, y)) =
136136
screen_to_nearest_grid(position.x, position.y, ui_state.image_rect)
137137
{
138138
commands.spawn((
@@ -290,7 +290,7 @@ pub fn button_input(
290290
}
291291
}
292292
ToolType::DrawWall | ToolType::ResizeWall => {
293-
if let Some((mut x, mut y)) =
293+
if let Some((x, y)) =
294294
screen_to_nearest_grid(position.x, position.y, ui_state.image_rect)
295295
{
296296
rect_wall_set
@@ -328,7 +328,7 @@ pub fn button_input(
328328
}
329329
}
330330
ToolType::MoveWall => {
331-
if let Some((mut x, mut y)) =
331+
if let Some((x, y)) =
332332
screen_to_nearest_grid(position.x, position.y, ui_state.image_rect)
333333
{
334334
rect_wall_set.p1().iter_mut().for_each(|(_, mut wall)| {

0 commit comments

Comments
 (0)