Box huge future to avoid clippy warning
This commit is contained in:
parent
eec42ec369
commit
c9754bc00a
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
unreachable!("sync() returned unexpectedly")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue