From 28d6401c4ffc8c8f6c393637be4e79ef65942f9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 26 Jun 2024 15:41:14 +0200 Subject: [PATCH] ui: Make public all timeline module errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A few were missing in the public API like SendEventError and RedactEventError and their dependencies. This uses a wildcard because it should be rare to not want to expose an error type. Signed-off-by: Kévin Commaille --- crates/matrix-sdk-ui/src/timeline/mod.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/crates/matrix-sdk-ui/src/timeline/mod.rs b/crates/matrix-sdk-ui/src/timeline/mod.rs index 907713cdb..4e81a4230 100644 --- a/crates/matrix-sdk-ui/src/timeline/mod.rs +++ b/crates/matrix-sdk-ui/src/timeline/mod.rs @@ -60,12 +60,7 @@ use ruma::{ use thiserror::Error; use tracing::{error, instrument, trace, warn}; -use self::{ - error::{RedactEventError, SendEventError}, - event_item::EventTimelineItemKind, - futures::SendAttachment, - util::rfind_event_item, -}; +use self::{event_item::EventTimelineItemKind, futures::SendAttachment, util::rfind_event_item}; mod builder; mod day_dividers; @@ -90,7 +85,7 @@ mod virtual_item; pub use self::{ builder::TimelineBuilder, - error::{Error, PaginationError, UnsupportedEditItem, UnsupportedReplyItem}, + error::*, event_item::{ AnyOtherFullStateEventContent, BundledReactions, EncryptedMessage, EventItemOrigin, EventSendState, EventTimelineItem, InReplyToDetails, MemberProfileChange, MembershipChange,