File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ pub fn swap_3d_tex_from_idx(
60
60
}
61
61
}
62
62
} ) ;
63
- return ;
64
63
}
65
64
}
66
65
@@ -111,6 +110,5 @@ pub fn swap_2d_tex_from_idx(
111
110
}
112
111
}
113
112
} ) ;
114
- return ;
115
113
}
116
114
}
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ impl ShadplayWindowDims {
101
101
}
102
102
103
103
/// Resource: All the shapes we have the option of displaying. 3d Only.
104
+ #[ allow( clippy:: type_complexity) ]
104
105
#[ derive( Resource , Default ) ]
105
106
pub struct ShapeOptions (
106
107
pub Vec < (
@@ -371,7 +372,7 @@ pub fn setup_2d(
371
372
user_textures. insert ( 0 , texture. clone ( ) ) ;
372
373
373
374
// 2D camera
374
- commands. spawn ( ( Camera2d { .. default ( ) } , Cam2D ) ) ;
375
+ commands. spawn ( ( Camera2d :: default ( ) , Cam2D ) ) ;
375
376
info ! ( "Spawned 2d Cam" ) ;
376
377
377
378
let win = windows
@@ -453,10 +454,9 @@ pub fn update_mouse_pos(
453
454
454
455
// Is the mouse on our window?
455
456
if shadplay_win_dims. hittest ( mouse_xy) {
456
- for ( _, shad_mat) in shader_mat. iter_mut ( ) {
457
+ if let Some ( ( _, shad_mat) ) = shader_mat. iter_mut ( ) . next ( ) {
457
458
let sh_xy = shadplay_win_dims. to_uv ( mouse_xy) ;
458
459
shad_mat. mouse_pos = sh_xy. into ( ) ;
459
- return ;
460
460
}
461
461
}
462
462
}
You can’t perform that action at this time.
0 commit comments