From c9754bc00aac82b796de3a7894acbbbeda047d4d Mon Sep 17 00:00:00 2001 From: Xiretza Date: Tue, 18 Jul 2023 20:29:23 +0000 Subject: [PATCH] Box huge future to avoid clippy warning --- src/bot.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bot.rs b/src/bot.rs index 741a619..4574f3f 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -334,7 +334,8 @@ impl Bot { }, ); - this.client.sync(SyncSettings::default()).await?; + // Box humongous future + Box::pin(this.client.sync(SyncSettings::default())).await?; unreachable!("sync() returned unexpectedly") } }