enforce lint groups
added remaining lint enforcements
This commit is contained in:
@@ -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
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user