From eac5a5eb35ac1d763b38b2bd459b61cd188032f9 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 8 Jan 2025 21:20:21 +0100 Subject: [PATCH] refactor(ui): Fix unused import on wasm --- crates/matrix-sdk-ui/src/timeline/futures.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk-ui/src/timeline/futures.rs b/crates/matrix-sdk-ui/src/timeline/futures.rs index 8109e0cb8..bba9799a6 100644 --- a/crates/matrix-sdk-ui/src/timeline/futures.rs +++ b/crates/matrix-sdk-ui/src/timeline/futures.rs @@ -1,6 +1,6 @@ use std::future::IntoFuture; -use eyeball::{SharedObservable, Subscriber}; +use eyeball::SharedObservable; use matrix_sdk::{attachment::AttachmentConfig, TransmissionProgress}; use matrix_sdk_base::boxed_into_future; use mime::Mime; @@ -48,10 +48,9 @@ impl<'a> SendAttachment<'a> { Self { use_send_queue: true, ..self } } - /// Get a subscriber to observe the progress of sending the request - /// body. + /// Get a subscriber to observe the progress of sending the request body. #[cfg(not(target_arch = "wasm32"))] - pub fn subscribe_to_send_progress(&self) -> Subscriber { + pub fn subscribe_to_send_progress(&self) -> eyeball::Subscriber { self.send_progress.subscribe() } }