enforce lint groups

added remaining lint enforcements
This commit is contained in:
MaxOhn
2021-11-06 22:30:10 +01:00
parent 65e4ba166a
commit 21dcdeb942
16 changed files with 44 additions and 39 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ impl<T> LimitedQueue<T> {
}
#[inline]
pub(crate) fn iter(&self) -> LimitedQueueIter<T> {
pub(crate) fn iter(&self) -> LimitedQueueIter<'_, T> {
let iter = self
.queue
.iter()
+1 -1
View File
@@ -48,7 +48,7 @@ impl Skill {
}
#[inline]
pub(crate) fn process(&mut self, current: &DifficultyObject, cheese: &[bool]) {
pub(crate) fn process(&mut self, current: &DifficultyObject<'_>, cheese: &[bool]) {
self.current_strain *= self.strain_decay(current.delta);
self.current_strain += self.kind.strain_value_of(current, cheese) * self.skill_multiplier();
self.current_section_peak = self.current_section_peak.max(self.current_strain);
+5 -1
View File
@@ -55,7 +55,11 @@ impl SkillKind {
}
}
pub(crate) fn strain_value_of(&mut self, current: &DifficultyObject, cheese: &[bool]) -> f32 {
pub(crate) fn strain_value_of(
&mut self,
current: &DifficultyObject<'_>,
cheese: &[bool],
) -> f32 {
match self {
Self::Color {
mono_history,