fruits: minor adjustment

This commit is contained in:
MaxOhn
2021-01-18 10:12:17 +01:00
parent 6c1a204b41
commit aae601a91e
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -60,8 +60,10 @@ impl<'m> FruitsPP<'m> {
/// If you already calculated the attributes for the current map-mod combination,
/// be sure to put them in here so that they don't have to be recalculated.
#[inline]
pub fn attributes(mut self, attributes: DifficultyAttributes) -> Self {
self.attributes.replace(attributes);
pub fn attributes(mut self, attributes: impl FruitsAttributeProvider) -> Self {
if let Some(attributes) = attributes.attributes() {
self.attributes.replace(attributes);
}
self
}
+1
View File
@@ -32,6 +32,7 @@ pub struct TaikoPP<'m> {
passed_objects: Option<usize>,
}
// TODO: n300 & n100
impl<'m> TaikoPP<'m> {
#[inline]
pub fn new(map: &'m Beatmap) -> Self {