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 {