std.event: use .{} to initiate Lock to unlocked state

Co-authored-by: Mikko Kaihlavirta <kaihlavirta@gmail.com>
This commit is contained in:
Mikko Kaihlavirta
2022-07-01 00:09:36 +03:00
committed by GitHub
parent c248af3bdc
commit be18459c81
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ pub fn Group(comptime ReturnType: type) type {
return Self{
.frame_stack = Stack.init(),
.alloc_stack = AllocStack.init(),
.lock = Lock.init(),
.lock = .{},
.allocator = allocator,
};
}

View File

@@ -22,7 +22,7 @@ pub fn Locked(comptime T: type) type {
pub fn init(data: T) Self {
return Self{
.lock = Lock.init(),
.lock = .{},
.private_data = data,
};
}