Skip to content

Commit

Permalink
chore: satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxOhn committed Nov 1, 2024
1 parent 98ca341 commit 674cbec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osu/performance/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1040,11 +1040,11 @@ fn total_imperfect_hits(state: &OsuScoreState) -> f64 {
f64::from(state.n100 + state.n50 + state.misses)
}

fn n_slider_ends_dropped(attrs: &OsuDifficultyAttributes, state: &OsuScoreState) -> u32 {
const fn n_slider_ends_dropped(attrs: &OsuDifficultyAttributes, state: &OsuScoreState) -> u32 {
attrs.n_sliders - state.slider_end_hits
}

fn n_slider_tick_miss(attrs: &OsuDifficultyAttributes, state: &OsuScoreState) -> u32 {
const fn n_slider_tick_miss(attrs: &OsuDifficultyAttributes, state: &OsuScoreState) -> u32 {
attrs.n_slider_ticks - state.slider_tick_hits
}

Expand Down

0 comments on commit 674cbec

Please sign in to comment.