style(host): rustfmt the bit_depth ternary in serve_session

Collapse the manually-wrapped if/else to rustfmt's canonical form; fixes
the cargo fmt --all --check CI failure at punktfunk1.rs:895.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-08 22:07:54 +02:00
co-authored by Claude Fable 5
parent 838a1239cf
commit 2003d8a75c
+6 -8
View File
@@ -895,14 +895,12 @@ async fn serve_session(
// stance as the GameStream Main10 advertisement).
let host_wants_10bit = crate::config::config().ten_bit;
let client_supports_10bit = hello.video_caps & punktfunk_core::quic::VIDEO_CAP_10BIT != 0;
let bit_depth: u8 = if host_wants_10bit
&& client_supports_10bit
&& codec == crate::encode::Codec::H265
{
10
} else {
8
};
let bit_depth: u8 =
if host_wants_10bit && client_supports_10bit && codec == crate::encode::Codec::H265 {
10
} else {
8
};
tracing::info!(
bit_depth,
host_wants_10bit,