fix(windows/capture): clippy unnecessary_lazy_evaluations in scratch build

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-22 23:43:23 +02:00
co-authored by Claude Opus 4.8
parent 0af280a793
commit 6e37da8b4e
+2 -2
View File
@@ -1776,13 +1776,13 @@ impl IddPushCapturer {
.device .device
.CreateTexture2D(&desc, None, Some(&mut tex)) .CreateTexture2D(&desc, None, Some(&mut tex))
.ok() .ok()
.and_then(|_| tex) .and(tex)
.and_then(|t| { .and_then(|t| {
let mut srv: Option<ID3D11ShaderResourceView> = None; let mut srv: Option<ID3D11ShaderResourceView> = None;
self.device self.device
.CreateShaderResourceView(&t, None, Some(&mut srv)) .CreateShaderResourceView(&t, None, Some(&mut srv))
.ok() .ok()
.and_then(|_| srv) .and(srv)
.map(|v| (t, v)) .map(|v| (t, v))
}); });
match built { match built {