chore: remove clippy warnings (#213)

This commit is contained in:
ToastXC
2023-01-19 02:16:27 +08:00
committed by GitHub
parent 32d3683013
commit fc32996b51
4 changed files with 5 additions and 9 deletions

View File

@@ -38,7 +38,7 @@ pub async fn queue(channel: String, id: String, content: String) {
pub async fn worker(db: Database) {
loop {
let task = Q.pop().await;
if let Ok(embeds) = Embed::generate(task.content, &*JANUARY_URL, *MAX_EMBED_COUNT).await {
if let Ok(embeds) = Embed::generate(task.content, &JANUARY_URL, *MAX_EMBED_COUNT).await {
if let Err(err) = Message::append(
&db,
task.id,