From 2003d8a75cd56acfe14025bd03282b9a64fcc0da Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Wed, 8 Jul 2026 22:07:54 +0200 Subject: [PATCH] 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 --- crates/punktfunk-host/src/punktfunk1.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/crates/punktfunk-host/src/punktfunk1.rs b/crates/punktfunk-host/src/punktfunk1.rs index 5c4faccf..2cd6ec6a 100644 --- a/crates/punktfunk-host/src/punktfunk1.rs +++ b/crates/punktfunk-host/src/punktfunk1.rs @@ -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,