Happy clippy

main
DaXcess 2024-08-22 10:05:49 +02:00
parent 2651966ad8
commit 9c7d29b546
No known key found for this signature in database
GPG Key ID: CF78CC72F0FD5EAD
1 changed files with 12 additions and 14 deletions

View File

@ -304,21 +304,19 @@ impl PlaybackEmbed {
return ControlFlow::Break(()); return ControlFlow::Break(());
} }
}; };
} else { } else if let Err(why) = self
if let Err(why) = self .message
.message .edit(
.edit( &self.ctx,
&self.ctx, EditMessage::new()
EditMessage::new() .embed(build_embed(&playback_info, &owner))
.embed(build_embed(&playback_info, &owner)) .components(vec![build_buttons(self.id, playback_info.playing())]),
.components(vec![build_buttons(self.id, playback_info.playing())]), )
) .await
.await {
{ error!("Failed to update playback embed: {why}");
error!("Failed to update playback embed: {why}");
return ControlFlow::Break(()); return ControlFlow::Break(());
}
} }
self.last_update = Instant::now(); self.last_update = Instant::now();