Skip to content

Commit 981568c

Browse files
committed
Fmt.
1 parent 99f3534 commit 981568c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • crates/processing_ffi/src

crates/processing_ffi/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,11 @@ pub extern "C" fn processing_surface_create(
132132
scale_factor: f32,
133133
) -> u64 {
134134
error::clear_error();
135-
error::check(|| surface_create_linux(window_handle, display_handle, width, height, scale_factor))
136-
.map(|e| e.to_bits())
137-
.unwrap_or(0)
135+
error::check(|| {
136+
surface_create_linux(window_handle, display_handle, width, height, scale_factor)
137+
})
138+
.map(|e| e.to_bits())
139+
.unwrap_or(0)
138140
}
139141

140142
/// Create a graphics context for a surface.

0 commit comments

Comments
 (0)