aboutsummaryrefslogtreecommitdiff
path: root/src/router.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/router.zig')
-rw-r--r--src/router.zig10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/router.zig b/src/router.zig
index c7dadcdd3..f4ea731d3 100644
--- a/src/router.zig
+++ b/src/router.zig
@@ -668,17 +668,13 @@ pub const Route = struct {
if (public_dir.len > 0) {
route_file_buf[0] = '/';
buf = buf[1..];
- std.mem.copy(
- u8,
- buf,
- public_dir,
- );
+ bun.copy(u8, buf, public_dir);
}
buf[public_dir.len] = '/';
buf = buf[public_dir.len + 1 ..];
- std.mem.copy(u8, buf, base);
+ bun.copy(u8, buf, base);
buf = buf[base.len..];
- std.mem.copy(u8, buf, extname);
+ bun.copy(u8, buf, extname);
buf = buf[extname.len..];
break :brk route_file_buf[0 .. @ptrToInt(buf.ptr) - @ptrToInt(&route_file_buf)];
};