Skip to content

Commit 8e5e6d6

Browse files
committed
Clippy.
1 parent 664bbaa commit 8e5e6d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/processing_ffi/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
use processing::prelude::error::ProcessingError;
88

99
thread_local! {
10-
static LAST_ERROR: RefCell<Option<CString>> = RefCell::new(None);
10+
static LAST_ERROR: RefCell<Option<CString>> = const { RefCell::new(None) };
1111
}
1212

1313
/// Check if the last operation resulted in an error. Returns a pointer to an error message, or null

crates/processing_ffi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mod error;
1414
#[unsafe(no_mangle)]
1515
pub extern "C" fn processing_init() {
1616
error::clear_error();
17-
error::check(|| init());
17+
error::check(init);
1818
}
1919

2020
/// Create a WebGPU surface from a native window handle.

0 commit comments

Comments
 (0)