fix invalid implicit cast on macos
This commit is contained in:
parent
803f0a295b
commit
c43f77f109
@ -253,7 +253,9 @@ pub const File = struct {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return stat.mode;
|
// TODO: we should be able to cast u16 to ModeError!u32, making this
|
||||||
|
// explicit cast not necessary
|
||||||
|
return os.FileMode(stat.mode);
|
||||||
} else if (is_windows) {
|
} else if (is_windows) {
|
||||||
return {};
|
return {};
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user