From 9265748a57ab86bbedb99f02b1db73236dd05835 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 30 Oct 2025 16:15:14 +0000 Subject: [PATCH] Remove legacy ruma return type on sync endpoint. Signed-off-by: Jason Volk --- src/api/client/sync/v3.rs | 5 ++--- src/api/router/handler.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/api/client/sync/v3.rs b/src/api/client/sync/v3.rs index cb7e78b6..5ac62f18 100644 --- a/src/api/client/sync/v3.rs +++ b/src/api/client/sync/v3.rs @@ -21,7 +21,6 @@ use ruma::{ State as RoomState, StateEvents, Timeline, ToDevice, }, }, - uiaa::UiaaResponse, }, events::{ AnyRawAccountDataEvent, AnySyncEphemeralRoomEvent, StateEventType, @@ -68,7 +67,7 @@ use tuwunel_service::{ }; use super::{load_timeline, share_encrypted_room}; -use crate::{Ruma, RumaResponse, client::ignored_filter}; +use crate::{Ruma, client::ignored_filter}; #[derive(Default)] struct StateChanges { @@ -126,7 +125,7 @@ type PresenceUpdates = HashMap; pub(crate) async fn sync_events_route( State(services): State, body: Ruma, -) -> Result> { +) -> Result { let (sender_user, sender_device) = body.sender(); let ping_presence = services diff --git a/src/api/router/handler.rs b/src/api/router/handler.rs index 9f1a38c4..0738f9d1 100644 --- a/src/api/router/handler.rs +++ b/src/api/router/handler.rs @@ -41,7 +41,7 @@ macro_rules! ruma_handler { Fun: Fn($($tx,)* Ruma,) -> Fut + Send + Sync + 'static, Fut: Future> + Send, Req: IncomingRequest + Debug + Send + Sync + 'static, - Err: IntoResponse + Send, + Err: IntoResponse + Debug + Send, ::OutgoingResponse: Send, $( $tx: FromRequestParts + Send + Sync + 'static, )* {