From 125221cce9e985e9062f7b599431f3ff50ed79eb Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 27 Apr 2023 15:16:01 -0700 Subject: std: update to use `@memcpy` directly --- lib/std/http/Server.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/http/Server.zig') diff --git a/lib/std/http/Server.zig b/lib/std/http/Server.zig index 66adb1bb96..c7f2a86c27 100644 --- a/lib/std/http/Server.zig +++ b/lib/std/http/Server.zig @@ -128,7 +128,7 @@ pub const BufferedConnection = struct { if (available > 0) { const can_read = @truncate(u16, @min(available, left)); - std.mem.copy(u8, buffer[out_index..], bconn.buf[bconn.start..][0..can_read]); + @memcpy(buffer[out_index..][0..can_read], bconn.buf[bconn.start..][0..can_read]); out_index += can_read; bconn.start += can_read; -- cgit v1.2.3