Commit ca07ef7 1 parent ad61336 commit ca07ef7 Copy full SHA for ca07ef7
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ pub fn button_input(
132
132
}
133
133
ToolType :: DrawWall => match ui_state. wall_type {
134
134
WallType :: Rectangle => {
135
- if let Some ( ( mut x , mut y) ) =
135
+ if let Some ( ( x , y) ) =
136
136
screen_to_nearest_grid ( position. x , position. y , ui_state. image_rect )
137
137
{
138
138
commands. spawn ( (
@@ -290,7 +290,7 @@ pub fn button_input(
290
290
}
291
291
}
292
292
ToolType :: DrawWall | ToolType :: ResizeWall => {
293
- if let Some ( ( mut x , mut y) ) =
293
+ if let Some ( ( x , y) ) =
294
294
screen_to_nearest_grid ( position. x , position. y , ui_state. image_rect )
295
295
{
296
296
rect_wall_set
@@ -328,7 +328,7 @@ pub fn button_input(
328
328
}
329
329
}
330
330
ToolType :: MoveWall => {
331
- if let Some ( ( mut x , mut y) ) =
331
+ if let Some ( ( x , y) ) =
332
332
screen_to_nearest_grid ( position. x , position. y , ui_state. image_rect )
333
333
{
334
334
rect_wall_set. p1 ( ) . iter_mut ( ) . for_each ( |( _, mut wall) | {
You can’t perform that action at this time.
0 commit comments