forked from unom/punktfunk
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user