Happy clippy
parent
2651966ad8
commit
9c7d29b546
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue