From 33ab7b058d9171c38d92c85458ff54a018554e4a Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Fri, 24 Apr 2026 00:04:18 +0800 Subject: [PATCH] fix(ws): replace unreachable_unchecked with safe fallback for TypingStart/TypingStop TypingStart/TypingStop actions are intercepted in ws_universal.rs so this match arm is never reached, but we need a safe fallback instead of std::hint::unreachable_unchecked(). --- libs/api/room/ws_handler.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/api/room/ws_handler.rs b/libs/api/room/ws_handler.rs index 827f296..6a12a01 100644 --- a/libs/api/room/ws_handler.rs +++ b/libs/api/room/ws_handler.rs @@ -728,6 +728,9 @@ impl WsRequestHandler { WsAction::UnsubscribeRoom => Ok(WsResponseData::bool(true)), WsAction::SubscribeProject => Ok(WsResponseData::subscribed(None, None)), WsAction::UnsubscribeProject => Ok(WsResponseData::bool(true)), + // TypingStart/TypingStop are handled directly in ws_universal.rs + // (interception point sends response there, so this arm is never reached) + WsAction::TypingStart | WsAction::TypingStop => Ok(WsResponseData::bool(true)), } } }