##// END OF EJS Templates
rust: fix build errors on darwin...
Dan Villiom Podlaski Christiansen -
r49356:d6c53b40 default
parent child Browse files
Show More
@@ -399,7 +399,7 b' impl Node {'
399 399 } else {
400 400 0o644
401 401 };
402 file_type | permisions
402 (file_type | permisions).into()
403 403 }
404 404
405 405 fn mtime(&self) -> Result<TruncatedTimestamp, DirstateV2ParseError> {
@@ -505,8 +505,8 b' impl Node {'
505 505 flags.set(Flags::P1_TRACKED, p1_tracked);
506 506 flags.set(Flags::P2_INFO, p2_info);
507 507 let size = if let Some((m, s)) = mode_size_opt {
508 let exec_perm = m & libc::S_IXUSR != 0;
509 let is_symlink = m & libc::S_IFMT == libc::S_IFLNK;
508 let exec_perm = m & (libc::S_IXUSR as u32) != 0;
509 let is_symlink = m & (libc::S_IFMT as u32) == libc::S_IFLNK as u32;
510 510 flags.set(Flags::MODE_EXEC_PERM, exec_perm);
511 511 flags.set(Flags::MODE_IS_SYMLINK, is_symlink);
512 512 flags.insert(Flags::HAS_MODE_AND_SIZE);
General Comments 0
You need to be logged in to leave comments. Login now