fix(host/rtsp): scope the HDR mut allow so Windows clippy stays green
deb / build-publish-host (push) Failing after 7m33s
ci / web (push) Successful in 55s
ci / docs-site (push) Successful in 50s
apple / swift (push) Successful in 1m21s
ci / bench (push) Successful in 6m13s
rpm / build-publish (44, fedora-44, punktfunk-fedora44-rpm) (push) Successful in 15m5s
release / apple (push) Successful in 10m36s
android-screenshots / screenshots (push) Successful in 3m18s
decky / build-publish (push) Successful in 16s
windows-host / package (push) Successful in 16m30s
apple / screenshots (push) Successful in 6m19s
deb / build-publish (push) Successful in 9m26s
ci / rust (push) Successful in 24m57s
android / android (push) Successful in 13m31s
arch / build-publish (push) Successful in 13m29s
windows-msix / package (arm64, C:\Users\Public\ffmpeg-arm64, --no-default-features, aarch64-pc-windows-msvc, C:\t-a64) (push) Successful in 6m41s
web-screenshots / screenshots (push) Successful in 2m57s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 10s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 10s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 11s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 11s
docker / build-push (ci, ci/rust-ci-noble.Dockerfile, punktfunk-rust-ci-noble) (push) Successful in 4m51s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 10s
docker / deploy-docs (push) Successful in 23s
flatpak / build-publish (push) Failing after 8m10s
linux-client-screenshots / screenshots (push) Successful in 7m27s
rpm / build-publish (43, bazzite, punktfunk-fedora-rpm) (push) Failing after 7m23s
windows-msix / package (x64, C:\Users\Public\ffmpeg, , x86_64-pc-windows-msvc, C:\t) (push) Successful in 7m9s
deb / build-publish-host (push) Failing after 7m33s
ci / web (push) Successful in 55s
ci / docs-site (push) Successful in 50s
apple / swift (push) Successful in 1m21s
ci / bench (push) Successful in 6m13s
rpm / build-publish (44, fedora-44, punktfunk-fedora44-rpm) (push) Successful in 15m5s
release / apple (push) Successful in 10m36s
android-screenshots / screenshots (push) Successful in 3m18s
decky / build-publish (push) Successful in 16s
windows-host / package (push) Successful in 16m30s
apple / screenshots (push) Successful in 6m19s
deb / build-publish (push) Successful in 9m26s
ci / rust (push) Successful in 24m57s
android / android (push) Successful in 13m31s
arch / build-publish (push) Successful in 13m29s
windows-msix / package (arm64, C:\Users\Public\ffmpeg-arm64, --no-default-features, aarch64-pc-windows-msvc, C:\t-a64) (push) Successful in 6m41s
web-screenshots / screenshots (push) Successful in 2m57s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 10s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 10s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 11s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 11s
docker / build-push (ci, ci/rust-ci-noble.Dockerfile, punktfunk-rust-ci-noble) (push) Successful in 4m51s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 10s
docker / deploy-docs (push) Successful in 23s
flatpak / build-publish (push) Failing after 8m10s
linux-client-screenshots / screenshots (push) Successful in 7m27s
rpm / build-publish (43, bazzite, punktfunk-fedora-rpm) (push) Failing after 7m23s
windows-msix / package (x64, C:\Users\Public\ffmpeg, , x86_64-pc-windows-msvc, C:\t) (push) Successful in 7m9s
`let mut hdr` tripped -D unused_mut on Windows: the only reassignment is the GNOME colour-mode probe below it, which is #[cfg(target_os = "linux")]. Dropping `mut` would break the Linux build, so allow unused_mut on non-Linux only — the lint still fires on Linux if that probe is ever removed. Second Windows-only breakage in this release that the Linux CI cannot see (see also the ffmpeg_win swscale match): `cargo clippy --workspace` on the Linux runner never compiles cfg(windows) code, and the Windows job builds only punktfunk-host + punktfunk-tray. Verified: cargo clippy --release -p punktfunk-host --features nvenc,amf-qsv,qsv -- -D warnings on 192.168.1.173. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -406,6 +406,9 @@ fn stream_config(map: &HashMap<String, String>) -> Option<StreamConfig> {
|
||||
// degrades to 8-bit SDR (and a Windows desktop that is ALREADY HDR still streams PQ
|
||||
// regardless, since the IDD-push capturer follows the display).
|
||||
let hdr_requested = parse_u("x-nv-video[0].dynamicRangeMode").unwrap_or(0) != 0;
|
||||
// `mut` is load-bearing on Linux only — the GNOME colour-mode probe below clears it. Scope the
|
||||
// allow to non-Linux so `unused_mut` still fires here if that probe ever goes away.
|
||||
#[cfg_attr(not(target_os = "linux"), allow(unused_mut))]
|
||||
let mut hdr = hdr_requested && crate::gamestream::host_hdr_capable();
|
||||
if hdr_requested && !hdr {
|
||||
tracing::warn!(
|
||||
|
||||
Reference in New Issue
Block a user