From a50016c7481b4c8613e03af136d93309c6b30400 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 4 Dec 2023 20:19:18 +0100 Subject: Update code for Zig dev This code was tested on zig-dev-bin-1:0.12.0_dev.1773+8a8fd47d2-1 (AUR) --- tool/znk.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool/znk.zig') diff --git a/tool/znk.zig b/tool/znk.zig index fb2412f..af8f757 100644 --- a/tool/znk.zig +++ b/tool/znk.zig @@ -420,7 +420,7 @@ fn PrefixKeyGenerator(comptime EntropyReaderType: type) type { role: nkeys.Role, prefix: []const u8, allocator: Allocator, - done: std.atomic.Atomic(bool), + done: std.atomic.Value(bool), entropy: ?EntropyReaderType, const Self = @This(); @@ -430,7 +430,7 @@ fn PrefixKeyGenerator(comptime EntropyReaderType: type) type { .role = role, .prefix = prefix, .allocator = allocator, - .done = std.atomic.Atomic(bool).init(false), + .done = std.atomic.Value(bool).init(false), .entropy = entropy, }; } -- cgit v1.2.3