Box huge future to avoid clippy warning

This commit is contained in:
Xiretza 2023-07-18 20:29:23 +00:00
parent eec42ec369
commit c9754bc00a

View file

@ -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")
}
}