Remove unnecessary mut on system parameter
All checks were successful
Basic checks / Basic build-and-test supertask (push) Successful in 7m4s
All checks were successful
Basic checks / Basic build-and-test supertask (push) Successful in 7m4s
This commit is contained in:
@@ -116,7 +116,7 @@ impl Sparkler {
|
||||
|
||||
/// Advances the timer in a sparkler, swapping between visible and invisible
|
||||
/// each time the timer expires.
|
||||
pub fn operate_sparklers(mut sparklers: Query<(&mut Visibility, &mut Sparkler)>, time: Res<Time>) {
|
||||
pub fn operate_sparklers(sparklers: Query<(&mut Visibility, &mut Sparkler)>, time: Res<Time>) {
|
||||
for (mut vis, mut timer) in sparklers {
|
||||
if timer.tick(time.delta()).just_finished() {
|
||||
// Cycle between visible and in-visible modes (and print warning for "Inherited")
|
||||
|
||||
Reference in New Issue
Block a user