chore(zig): add a new lint for using bun.FD.cwd() (#10683)

This commit is contained in:
Meghan Denny
2024-05-01 16:12:09 -07:00
committed by GitHub
parent 5f4c5052d1
commit e45cd749e5
10 changed files with 16 additions and 14 deletions

View File

@@ -563,7 +563,7 @@ pub const StandaloneModuleGraph = struct {
bun.C.moveFileZWithHandle(
fd,
bun.toFD(std.fs.cwd().fd),
bun.FD.cwd(),
bun.sliceTo(&(try std.os.toPosixPath(temp_location)), 0),
bun.toFD(root_dir.fd),
bun.sliceTo(&(try std.os.toPosixPath(std.fs.path.basename(outfile))), 0),