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

missing generics for struct LockedHeap #13

Closed
uran0sH opened this issue Jul 17, 2021 · 3 comments
Closed

missing generics for struct LockedHeap #13

uran0sH opened this issue Jul 17, 2021 · 3 comments

Comments

@uran0sH
Copy link

uran0sH commented Jul 17, 2021

#[global_allocator]
static HEAP_ALLOCATOR: LockedHeap = LockedHeap::empty();

I use 0.8.0 version. And it reports that "missing generics for struct LockedHeap
expected 1 const argumen"

@jiegec
Copy link
Member

jiegec commented Jul 17, 2021

In 0.8.0, the syntax is changed:

#[global_allocator]
static HEAP_ALLOCATOR: LockedHeap = LockedHeap::<32>::empty();

See pr #10

@uran0sH
Copy link
Author

uran0sH commented Jul 17, 2021

Thanks a lot. README needs to be updated.

@jiegec
Copy link
Member

jiegec commented Jul 17, 2021

Done

@jiegec jiegec closed this as completed Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants