Skip to content

Commit 770848f

Browse files
committed
Refactor CreateTexture2D error closure formatting
1 parent 1c7a83a commit 770848f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • crates/recording/src/output_pipeline

crates/recording/src/output_pipeline/win.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,9 +1714,11 @@ pub fn upload_mf_buffer_to_texture(
17141714
unsafe {
17151715
let mut texture = None;
17161716
device.CreateTexture2D(&texture_desc, Some(&subresource_data), Some(&mut texture))?;
1717-
texture.ok_or_else(|| windows::core::Error::new(
1718-
windows::core::HRESULT(-1),
1719-
"CreateTexture2D succeeded but returned no texture"
1720-
))
1717+
texture.ok_or_else(|| {
1718+
windows::core::Error::new(
1719+
windows::core::HRESULT(-1),
1720+
"CreateTexture2D succeeded but returned no texture",
1721+
)
1722+
})
17211723
}
17221724
}

0 commit comments

Comments
 (0)