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() } }