Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bkushigian/issue9 build errors #49

Closed
Prev Previous commit
More clippy
bkushigian committed Oct 6, 2024
commit b958e14c2bf72120dfb4f0b4e226a5338cae6048
4 changes: 2 additions & 2 deletions src/alloc.rs
Original file line number Diff line number Diff line change
@@ -29,11 +29,11 @@ struct StackAllocData {
}

thread_local! {
static STACK_ALLOC_DATA: RefCell<StackAllocData> = RefCell::new(StackAllocData {
static STACK_ALLOC_DATA: RefCell<StackAllocData> = const {RefCell::new(StackAllocData {
index: usize::MAX,
base: Vec::new(),
current: Vec::new(),
});
})};
}

impl StackAllocData {