Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Refactor CreateTexture2D error closure formatting

Richie McIlroy770848f7255c
diff --git a/crates/recording/src/output_pipeline/win.rs b/crates/recording/src/output_pipeline/win.rs
index ee2070db6..7a5a0e819 100644
--- a/crates/recording/src/output_pipeline/win.rs
+++ b/crates/recording/src/output_pipeline/win.rs
@@ -1714,9 +1714,11 @@ pub fn upload_mf_buffer_to_texture(
unsafe {
let mut texture = None;
device.CreateTexture2D(&texture_desc, Some(&subresource_data), Some(&mut texture))?;
- texture.ok_or_else(|| windows::core::Error::new(
- windows::core::HRESULT(-1),
- "CreateTexture2D succeeded but returned no texture"
- ))
+ texture.ok_or_else(|| {
+ windows::core::Error::new(
+ windows::core::HRESULT(-1),
+ "CreateTexture2D succeeded but returned no texture",
+ )
+ })
}
}