mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
std.fs: fix shadowing stat with a local variable
This commit is contained in:
parent
64dfd1883e
commit
225f196842
@ -1517,9 +1517,9 @@ pub const Dir = struct {
|
||||
|
||||
var size: ?u64 = null;
|
||||
const mode = options.override_mode orelse blk: {
|
||||
const stat = try in_file.stat();
|
||||
size = stat.size;
|
||||
break :blk stat.mode;
|
||||
const st = try in_file.stat();
|
||||
size = st.size;
|
||||
break :blk st.mode;
|
||||
};
|
||||
|
||||
var atomic_file = try dest_dir.atomicFile(dest_path, .{ .mode = mode });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user