Skip to content

Commit

Permalink
Fix new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Nov 30, 2024
1 parent 0015711 commit 3a60c31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub struct PlayAudioCommand<'a> {
pub(crate) que: &'a dyn AudioCommandQue,
}

impl<'a> Drop for PlayAudioCommand<'a> {
impl Drop for PlayAudioCommand<'_> {
fn drop(&mut self) {
self.que.que(AudioCommand::Play(self.into()));
}
Expand Down Expand Up @@ -328,7 +328,7 @@ pub struct TweenCommand<'a, Fade> {
_marker: PhantomData<Fade>,
}

impl<'a, Fade> Drop for TweenCommand<'a, Fade> {
impl<Fade> Drop for TweenCommand<'_, Fade> {
fn drop(&mut self) {
self.que.que(self.kind.to_command(self.tween.take()));
}
Expand All @@ -345,7 +345,7 @@ impl<'a, Fade> TweenCommand<'a, Fade> {
}
}

impl<'a> TweenCommand<'a, FadeIn> {
impl TweenCommand<'_, FadeIn> {
/// Set how long will the sound fade in linearly.
pub fn linear_fade_in(&mut self, duration: Duration) -> &mut Self {
self.tween = Some(AudioTween::linear(duration));
Expand All @@ -362,7 +362,7 @@ impl<'a> TweenCommand<'a, FadeIn> {
}
}

impl<'a> TweenCommand<'a, FadeOut> {
impl TweenCommand<'_, FadeOut> {
/// Set how long will the sound fade out linearly.
pub fn linear_fade_out(&mut self, duration: Duration) -> &mut Self {
self.tween = Some(AudioTween::linear(duration));
Expand Down

0 comments on commit 3a60c31

Please sign in to comment.