From f94c861182059aec1db36664f0f86bfc3a963875 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 4 Sep 2026 23:36:41 +0800 Subject: [PATCH] port_forward: restore the `?` the close removal left as a match Dropping the explicit close_webrtc() from the parse-error arm left a match that only re-spells `?`; master just reworked this function, so the branch now leaves port_forward.rs untouched. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_019aokqJuhjvB3kijXtAg5Ns --- src/port_forward.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/port_forward.rs b/src/port_forward.rs index 439f6380c..fd3d1eecf 100644 --- a/src/port_forward.rs +++ b/src/port_forward.rs @@ -201,12 +201,7 @@ async fn connect_and_login( received = true; interface.update_received(true); } - let msg_in = match Message::parse_from_bytes(&bytes) { - Ok(msg) => msg, - Err(err) => { - return Err(err.into()); - } - }; + let msg_in = Message::parse_from_bytes(&bytes)?; match msg_in.union { Some(message::Union::Hash(hash)) => { challenge = Some(hash.clone());