diff --git a/youmubot-osu/src/models/mods.rs b/youmubot-osu/src/models/mods.rs index 48dcc69..5a49984 100644 --- a/youmubot-osu/src/models/mods.rs +++ b/youmubot-osu/src/models/mods.rs @@ -128,3 +128,9 @@ impl fmt::Display for Mods { Ok(()) } } + +impl From for oppai_rs::Mods { + fn from(m: Mods) -> Self { + oppai_rs::Mods::from_bits_truncate(m.bits() as i32) + } +}