From 0e618bea5c2d192ded3f991f5f73413c97c54339 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 15 Jun 2023 13:37:00 +0200 Subject: [PATCH] ui: Don't use TryFutureExt where not necessary --- crates/matrix-sdk-ui/src/timeline/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/matrix-sdk-ui/src/timeline/mod.rs b/crates/matrix-sdk-ui/src/timeline/mod.rs index 7cca40f68e0..bad2c78afb1 100644 --- a/crates/matrix-sdk-ui/src/timeline/mod.rs +++ b/crates/matrix-sdk-ui/src/timeline/mod.rs @@ -21,7 +21,6 @@ use std::{fs, path::Path, pin::Pin, sync::Arc, task::Poll, time::Duration}; use async_std::sync::{Condvar, Mutex}; use eyeball_im::VectorDiff; use futures_core::Stream; -use futures_util::TryFutureExt; use imbl::Vector; use matrix_sdk::{ attachment::AttachmentConfig, @@ -351,8 +350,8 @@ impl Timeline { let data = fs::read(&url).map_err(|_| Error::InvalidAttachmentData)?; room.send_attachment(body, &mime_type, data, config) - .map_err(|_| Error::FailedSendingAttachment) - .await?; + .await + .map_err(|_| Error::FailedSendingAttachment)?; Ok(()) }