We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 664bbaa commit 8e5e6d6Copy full SHA for 8e5e6d6
crates/processing_ffi/src/error.rs
@@ -7,7 +7,7 @@ use std::{
7
use processing::prelude::error::ProcessingError;
8
9
thread_local! {
10
- static LAST_ERROR: RefCell<Option<CString>> = RefCell::new(None);
+ static LAST_ERROR: RefCell<Option<CString>> = const { RefCell::new(None) };
11
}
12
13
/// Check if the last operation resulted in an error. Returns a pointer to an error message, or null
crates/processing_ffi/src/lib.rs
@@ -14,7 +14,7 @@ mod error;
14
#[unsafe(no_mangle)]
15
pub extern "C" fn processing_init() {
16
error::clear_error();
17
- error::check(|| init());
+ error::check(init);
18
19
20
/// Create a WebGPU surface from a native window handle.
0 commit comments