From a356a20c3d0e97652fc95b3ff4f28283808ea23e Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Tue, 30 Jan 2024 16:00:21 +0100 Subject: [PATCH] fixup! event graph: make `TimelineBuilder::build` fallible --- bindings/matrix-sdk-ffi/src/room_list.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/matrix-sdk-ffi/src/room_list.rs b/bindings/matrix-sdk-ffi/src/room_list.rs index f91ee7ceca3..87d658e2a6f 100644 --- a/bindings/matrix-sdk-ffi/src/room_list.rs +++ b/bindings/matrix-sdk-ffi/src/room_list.rs @@ -46,8 +46,8 @@ pub enum RoomListError { TimelineAlreadyExists { room_name: String }, #[error("A timeline instance hasn't been initialized for room {room_name}")] TimelineNotInitialized { room_name: String }, - #[error("Timeline couldn't be initialized: {message}")] - InitializingTimeline { message: String }, + #[error("Timeline couldn't be initialized: {error}")] + InitializingTimeline { error: String }, } impl From for RoomListError { @@ -63,7 +63,7 @@ impl From for RoomListError { Self::TimelineAlreadyExists { room_name: room_id.to_string() } } InitializingTimeline(source) => { - Self::InitializingTimeline { message: source.to_string() } + Self::InitializingTimeline { error: source.to_string() } } } }