##// 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 } else {
399 } else {
400 0o644
400 0o644
401 };
401 };
402 file_type | permisions
402 (file_type | permisions).into()
403 }
403 }
404
404
405 fn mtime(&self) -> Result<TruncatedTimestamp, DirstateV2ParseError> {
405 fn mtime(&self) -> Result<TruncatedTimestamp, DirstateV2ParseError> {
@@ -505,8 +505,8 b' impl Node {'
505 flags.set(Flags::P1_TRACKED, p1_tracked);
505 flags.set(Flags::P1_TRACKED, p1_tracked);
506 flags.set(Flags::P2_INFO, p2_info);
506 flags.set(Flags::P2_INFO, p2_info);
507 let size = if let Some((m, s)) = mode_size_opt {
507 let size = if let Some((m, s)) = mode_size_opt {
508 let exec_perm = m & libc::S_IXUSR != 0;
508 let exec_perm = m & (libc::S_IXUSR as u32) != 0;
509 let is_symlink = m & libc::S_IFMT == libc::S_IFLNK;
509 let is_symlink = m & (libc::S_IFMT as u32) == libc::S_IFLNK as u32;
510 flags.set(Flags::MODE_EXEC_PERM, exec_perm);
510 flags.set(Flags::MODE_EXEC_PERM, exec_perm);
511 flags.set(Flags::MODE_IS_SYMLINK, is_symlink);
511 flags.set(Flags::MODE_IS_SYMLINK, is_symlink);
512 flags.insert(Flags::HAS_MODE_AND_SIZE);
512 flags.insert(Flags::HAS_MODE_AND_SIZE);
General Comments 0
You need to be logged in to leave comments. Login now