use GameMods for Performance

This commit is contained in:
tsunyoku
2024-10-13 17:21:21 +01:00
parent 43c5788ffb
commit 4f08de5d9d
+2 -2
View File
@@ -2,7 +2,7 @@ use rosu_map::section::general::GameMode;
use crate::{
catch::CatchPerformance, mania::ManiaPerformance, osu::OsuPerformance, taiko::TaikoPerformance,
Difficulty,
Difficulty, GameMods,
};
use self::into::IntoPerformance;
@@ -108,7 +108,7 @@ impl<'map> Performance<'map> {
/// - [`&rosu_mods::GameModsIntermode`](rosu_mods::GameModsIntermode)
///
/// See <https://github.com/ppy/osu-api/wiki#mods>
pub fn mods(self, mods: u32) -> Self {
pub fn mods(self, mods: impl Into<GameMods>) -> Self {
match self {
Self::Osu(o) => Self::Osu(o.mods(mods)),
Self::Taiko(t) => Self::Taiko(t.mods(mods)),