inline trait methods

This commit is contained in:
MaxOhn
2022-07-05 23:18:52 +02:00
parent 47ddaa83bc
commit 996af9443b
+3
View File
@@ -159,6 +159,7 @@ enum GameMode {
}
impl From<GameMode> for RosuGameMode {
#[inline]
fn from(mode: GameMode) -> Self {
match mode {
GameMode::Osu => RosuGameMode::STD,
@@ -725,6 +726,7 @@ struct AttributeKey {
}
impl Hash for AttributeKey {
#[inline]
fn hash<H: Hasher>(&self, state: &mut H) {
self.mods.hash(state);
self.passed_objects.hash(state);
@@ -733,6 +735,7 @@ impl Hash for AttributeKey {
}
impl PartialEq for AttributeKey {
#[inline]
fn eq(&self, other: &Self) -> bool {
self.mods == other.mods
&& self.passed_objects == other.passed_objects