Skip to content
Snippets Groups Projects
Verified Commit 16cb32b1 authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Make WaitQueue::new() const fn.

parent 68b03d69
No related branches found
No related tags found
1 merge request!246Refactor int_like! macro
......@@ -13,7 +13,7 @@ pub struct WaitQueue<T> {
}
impl<T> WaitQueue<T> {
pub fn new() -> WaitQueue<T> {
pub const fn new() -> WaitQueue<T> {
WaitQueue {
inner: Mutex::new(VecDeque::new()),
condition: WaitCondition::new()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment