Skip to content

Commit

Permalink
ui: Don't use TryFutureExt where not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored and bnjbvr committed Jun 15, 2023
1 parent 31d8340 commit 0e618be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/matrix-sdk-ui/src/timeline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(())
}
Expand Down

0 comments on commit 0e618be

Please sign in to comment.