From 6e37da8b4ec9cd4c74e410a5a4e59758df731b7c Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Wed, 22 Jul 2026 14:32:33 +0200 Subject: [PATCH] fix(windows/capture): clippy unnecessary_lazy_evaluations in scratch build Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/pf-capture/src/windows/idd_push.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/pf-capture/src/windows/idd_push.rs b/crates/pf-capture/src/windows/idd_push.rs index 9c2c869a..e8265638 100644 --- a/crates/pf-capture/src/windows/idd_push.rs +++ b/crates/pf-capture/src/windows/idd_push.rs @@ -1776,13 +1776,13 @@ impl IddPushCapturer { .device .CreateTexture2D(&desc, None, Some(&mut tex)) .ok() - .and_then(|_| tex) + .and(tex) .and_then(|t| { let mut srv: Option = None; self.device .CreateShaderResourceView(&t, None, Some(&mut srv)) .ok() - .and_then(|_| srv) + .and(srv) .map(|v| (t, v)) }); match built {