Skip to content

Commit

Permalink
fix(libmake): 🐛 fix error: initializer for thread_local value can b…
Browse files Browse the repository at this point in the history
…e made `const`
  • Loading branch information
sebastienrousseau committed May 15, 2024
1 parent 169f728 commit 9d0375a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_file_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod tests {
}

thread_local! {
static LAST_ERROR: RefCell<Option<String>> = RefCell::new(None);
static LAST_ERROR: RefCell<Option<String>> = const { RefCell::new(None) };
}

// Mock eprintln! macro to capture the error messages
Expand Down

0 comments on commit 9d0375a

Please sign in to comment.