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(());
}
};
} else {
if let Err(why) = self
.message
.edit(
&self.ctx,
EditMessage::new()
.embed(build_embed(&playback_info, &owner))
.components(vec![build_buttons(self.id, playback_info.playing())]),
)
.await
{
error!("Failed to update playback embed: {why}");
} else if let Err(why) = self
.message
.edit(
&self.ctx,
EditMessage::new()
.embed(build_embed(&playback_info, &owner))
.components(vec![build_buttons(self.id, playback_info.playing())]),
)
.await
{
error!("Failed to update playback embed: {why}");
return ControlFlow::Break(());
}
return ControlFlow::Break(());
}
self.last_update = Instant::now();