perf: remove Copy from mania attributes
This commit is contained in:
+1
-1
@@ -385,7 +385,7 @@ impl PerformanceAttributes {
|
|||||||
Self::Osu(attrs) => DifficultyAttributes::Osu(attrs.difficulty.clone()),
|
Self::Osu(attrs) => DifficultyAttributes::Osu(attrs.difficulty.clone()),
|
||||||
Self::Taiko(attrs) => DifficultyAttributes::Taiko(attrs.difficulty.clone()),
|
Self::Taiko(attrs) => DifficultyAttributes::Taiko(attrs.difficulty.clone()),
|
||||||
Self::Catch(attrs) => DifficultyAttributes::Catch(attrs.difficulty.clone()),
|
Self::Catch(attrs) => DifficultyAttributes::Catch(attrs.difficulty.clone()),
|
||||||
Self::Mania(attrs) => DifficultyAttributes::Mania(attrs.difficulty),
|
Self::Mania(attrs) => DifficultyAttributes::Mania(attrs.difficulty.clone()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -230,7 +230,7 @@ struct ManiaResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The result of a difficulty calculation on an osu!mania map.
|
/// The result of a difficulty calculation on an osu!mania map.
|
||||||
#[derive(Copy, Clone, Debug, Default, PartialEq)]
|
#[derive(Clone, Debug, Default, PartialEq)]
|
||||||
pub struct ManiaDifficultyAttributes {
|
pub struct ManiaDifficultyAttributes {
|
||||||
/// The final star rating.
|
/// The final star rating.
|
||||||
pub stars: f64,
|
pub stars: f64,
|
||||||
@@ -271,7 +271,7 @@ impl ManiaDifficultyAttributes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The result of a performance calculation on an osu!mania map.
|
/// The result of a performance calculation on an osu!mania map.
|
||||||
#[derive(Copy, Clone, Debug, Default, PartialEq)]
|
#[derive(Clone, Debug, Default, PartialEq)]
|
||||||
pub struct ManiaPerformanceAttributes {
|
pub struct ManiaPerformanceAttributes {
|
||||||
/// The difficulty attributes that were used for the performance calculation.
|
/// The difficulty attributes that were used for the performance calculation.
|
||||||
pub difficulty: ManiaDifficultyAttributes,
|
pub difficulty: ManiaDifficultyAttributes,
|
||||||
|
|||||||
Reference in New Issue
Block a user