Skip to content

Commit 5ad6473

Browse files
committed
Fix clippy warning
1 parent 352c3eb commit 5ad6473

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/game/audio/music.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ fn update_beat(
108108
let position = rq!(music.state().position());
109109

110110
beat.this_tick = if beat.last_position <= position {
111-
count_beats(&config, beat.last_position, position)
111+
count_beats(config, beat.last_position, position)
112112
} else {
113-
count_beats(&config, beat.last_position, config.music_loop_end)
114-
+ count_beats(&config, config.music_loop_start, position)
113+
count_beats(config, beat.last_position, config.music_loop_end)
114+
+ count_beats(config, config.music_loop_start, position)
115115
};
116116
beat.total += beat.this_tick;
117117
beat.last_position = position;

0 commit comments

Comments
 (0)