mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-10-11 19:23:59 +00:00
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019aokqJuhjvB3kijXtAg5Ns
This commit is contained in:
co-authored by
Claude Opus 5
parent
166bb3d2ac
commit
6db01ec2f6
+2
-1
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user