From 4e8cee162aed7db576692742d4951b7f96b93d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E4=BA=91?= Date: Tue, 19 Mar 2024 19:28:34 +0800 Subject: [PATCH] sdk: make content of RawEvent public (#3239) This way it can be moved out and converted to other types like ruma::Serde::Raw. Signed-off-by: lilydjwg --- crates/matrix-sdk/src/event_handler/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk/src/event_handler/context.rs b/crates/matrix-sdk/src/event_handler/context.rs index 3760b51d7..46213a0a9 100644 --- a/crates/matrix-sdk/src/event_handler/context.rs +++ b/crates/matrix-sdk/src/event_handler/context.rs @@ -60,7 +60,7 @@ impl EventHandlerContext for Room { /// Used as a context argument for event handlers (see /// [`Client::add_event_handler`]). #[derive(Clone, Debug)] -pub struct RawEvent(Box); +pub struct RawEvent(pub Box); impl Deref for RawEvent { type Target = RawJsonValue;