From 455e24e99356b172a52f62f51506651d43a08fef Mon Sep 17 00:00:00 2001 From: "Ian Clarke (aider)" Date: Fri, 20 Dec 2024 12:42:39 -0600 Subject: [PATCH] feat: Fix moved value and unused variable warnings in FreenetApiSynchronizer --- ui/src/components/app/freenet_api.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/components/app/freenet_api.rs b/ui/src/components/app/freenet_api.rs index 05704c4..b989367 100644 --- a/ui/src/components/app/freenet_api.rs +++ b/ui/src/components/app/freenet_api.rs @@ -45,11 +45,11 @@ impl FreenetApiSynchronizer { /// Starts the Freenet API syncrhonizer. pub fn start() -> Self { let subscribed_contracts = HashSet::new(); - let (request_sender, request_receiver) = futures::channel::mpsc::unbounded(); + let (request_sender, _request_receiver) = futures::channel::mpsc::unbounded(); - let sender = FreenetApiSender { request_sender }; + let sender = FreenetApiSender { request_sender: request_sender.clone() }; - // Start the sync coroutine + // Start the sync coroutine use_coroutine(move |mut rx| { async move { *SYNC_STATUS.write() = SyncStatus::Connecting;