Fix clippy::redundant-async-block warnings

This commit is contained in:
link2xt
2023-03-17 09:20:34 +00:00
parent f024909611
commit edcc199461
2 changed files with 4 additions and 6 deletions

View File

@@ -1552,7 +1552,7 @@ impl RecentlySeenLoop {
pub(crate) fn new(context: Context) -> Self {
let (interrupt_send, interrupt_recv) = channel::bounded(1);
let handle = task::spawn(async move { Self::run(context, interrupt_recv).await });
let handle = task::spawn(Self::run(context, interrupt_recv));
Self {
handle,
interrupt_send,