diff --git a/src/backup/chunk_store.rs b/src/backup/chunk_store.rs index 139c9fd2..96ccbf2b 100644 --- a/src/backup/chunk_store.rs +++ b/src/backup/chunk_store.rs @@ -157,8 +157,8 @@ impl ChunkStore { let (chunk_path, _digest_str) = self.chunk_path(digest); - const UTIME_NOW: i64 = ((1 << 30) - 1); - const UTIME_OMIT: i64 = ((1 << 30) - 2); + const UTIME_NOW: i64 = (1 << 30) - 1; + const UTIME_OMIT: i64 = (1 << 30) - 2; let times: [libc::timespec; 2] = [ libc::timespec { tv_sec: 0, tv_nsec: UTIME_NOW }, diff --git a/src/pxar/sequential_decoder.rs b/src/pxar/sequential_decoder.rs index 08487100..8ae31cb7 100644 --- a/src/pxar/sequential_decoder.rs +++ b/src/pxar/sequential_decoder.rs @@ -1159,7 +1159,7 @@ fn symlinkat(target: &Path, parent: RawFd, linkname: &OsStr) -> Result<(), Error fn nsec_to_update_timespec(mtime_nsec: u64) -> [libc::timespec; 2] { // restore mtime - const UTIME_OMIT: i64 = ((1 << 30) - 2); + const UTIME_OMIT: i64 = (1 << 30) - 2; const NANOS_PER_SEC: i64 = 1_000_000_000; let sec = (mtime_nsec as i64) / NANOS_PER_SEC;