From 87a1012ab5db3b1d7d6d201e17b9941f2910be14 Mon Sep 17 00:00:00 2001 From: Lambda Date: Sat, 11 May 2024 15:03:28 +0000 Subject: [PATCH] Replace Box::into_pin(Box::new( with Box::pin( --- src/database/key_value/globals.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database/key_value/globals.rs b/src/database/key_value/globals.rs index 59aaf575..aebc3d03 100644 --- a/src/database/key_value/globals.rs +++ b/src/database/key_value/globals.rs @@ -76,9 +76,9 @@ impl service::globals::Data for KeyValueDatabase { futures.push(self.pduid_pdu.watch_prefix(&short_roomid)); // EDUs - futures.push(Box::into_pin(Box::new(async move { + futures.push(Box::pin(async move { let _result = services().rooms.edus.typing.wait_for_update(&room_id).await; - }))); + })); futures.push(self.readreceiptid_readreceipt.watch_prefix(&roomid_prefix));