From 514b22090b5a9e413874a29bead786fbbdf181ac Mon Sep 17 00:00:00 2001 From: Hanaasagi Date: Sun, 3 Dec 2023 11:25:02 +0900 Subject: [PATCH] chore: fix nightly build --- src/lib.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.zig b/src/lib.zig index 6061d5b..58b0081 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -81,8 +81,8 @@ pub const StructEnv = struct { fn getEnv(self: Self, comptime key: []const u8) ?[]const u8 { const new_key = if (self.prefix) |prefix| blk: { var new_key = self.allocator.alloc(u8, key.len + prefix.len) catch return ""; - std.mem.copy(u8, new_key[0..prefix.len], prefix); - std.mem.copy(u8, new_key[prefix.len..], key); + @memcpy(new_key[0..prefix.len], prefix); + @memcpy(new_key[prefix.len .. prefix.len + key.len], key); break :blk new_key; } else blk: {