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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user