std.event: use .{} to initiate Lock to unlocked state
Co-authored-by: Mikko Kaihlavirta <kaihlavirta@gmail.com>
2 files changed, 2 insertions(+), 2 deletions(-)
lib/std/event/group.zig+1-1
| ... | ... | @@ -35,7 +35,7 @@ pub fn Group(comptime ReturnType: type) type { |
| 35 | 35 | return Self{ |
| 36 | 36 | .frame_stack = Stack.init(), |
| 37 | 37 | .alloc_stack = AllocStack.init(), |
| 38 | | .lock = Lock.init(), |
| 38 | .lock = .{}, |
| 39 | 39 | .allocator = allocator, |
| 40 | 40 | }; |
| 41 | 41 | } |
lib/std/event/locked.zig+1-1
| ... | ... | @@ -22,7 +22,7 @@ pub fn Locked(comptime T: type) type { |
| 22 | 22 | |
| 23 | 23 | pub fn init(data: T) Self { |
| 24 | 24 | return Self{ |
| 25 | | .lock = Lock.init(), |
| 25 | .lock = .{}, |
| 26 | 26 | .private_data = data, |
| 27 | 27 | }; |
| 28 | 28 | } |