From 6db01ec2f60b51de10ee3179161192f748e5a66c Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 9 Sep 2026 16:38:02 +0800 Subject: [PATCH] review: name the state in the health-hint assert hbb_common is edition 2018, where a lone string literal is not treated as a format string, so the capture printed itself and the loop over the two terminal states could not say which one had failed. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_019aokqJuhjvB3kijXtAg5Ns --- src/webrtc.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webrtc.rs b/src/webrtc.rs index 52960df06..30701d956 100644 --- a/src/webrtc.rs +++ b/src/webrtc.rs @@ -2285,7 +2285,8 @@ IHR5cCBzcmZseCByYWRkciAwLjAuMC4wIHJwb3J0IDY0MDA4XHJcbmE9ZW5kLW9mLWNhbmRpZGF0ZXNc WebRTCStream::note_health(&flag, terminal); assert!( flag.load(Ordering::SeqCst), - "{terminal} must leave the hint as it found it" + "{} must leave the hint as it found it", + terminal ); } }