From 55cd58e48729325f3482d0a3c5a4de9654d77df2 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Thu, 18 Jun 2026 22:13:20 +0000 Subject: [PATCH] =?UTF-8?q?fix(android):=20DataSpace=20impls=20Display=20n?= =?UTF-8?q?ot=20Debug=20=E2=80=94=20use=20{ds}=20in=20HDR=20logs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ndk's DataSpace derives Copy/PartialEq/Eq and impls Display (no Debug), so the {ds:?} in the HDR dataspace log statements wouldn't compile under cargo-ndk. Host clippy can't catch it — decode.rs is android-gated. Switch to {ds}. Co-Authored-By: Claude Opus 4.8 (1M context) --- clients/android/native/src/decode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/android/native/src/decode.rs b/clients/android/native/src/decode.rs index b785c51..e46012e 100644 --- a/clients/android/native/src/decode.rs +++ b/clients/android/native/src/decode.rs @@ -218,10 +218,10 @@ fn drain(codec: &MediaCodec, window: &NativeWindow, applied_ds: &mut Option { *applied_ds = Some(ds); - log::info!("decode: HDR stream → Surface dataspace {ds:?}"); + log::info!("decode: HDR stream → Surface dataspace {ds}"); } Err(e) => log::warn!( - "decode: set_buffers_data_space({ds:?}) failed (non-fatal): {e}" + "decode: set_buffers_data_space({ds}) failed (non-fatal): {e}" ), } }