]> git.proxmox.com Git - pxar.git/commitdiff
fix deprecated use of std::u64 modules
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 4 Oct 2021 13:00:43 +0000 (15:00 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 4 Oct 2021 13:00:44 +0000 (15:00 +0200)
MAX values in these modules are replaced by associated
constants in the integer types

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/format/acl.rs
src/format/mod.rs

index 6cedc689e0b1fb9d9fa2d2a7e89ae3c246388d4d..510e0bca2cfe773097da75fde8fbe35262812c6a 100644 (file)
@@ -7,7 +7,7 @@ use endian_trait::Endian;
 pub const READ: u64 = 4;
 pub const WRITE: u64 = 2;
 pub const EXECUTE: u64 = 1;
-pub const NO_MASK: u64 = std::u64::MAX;
+pub const NO_MASK: u64 = u64::MAX;
 
 /// ACL permission bits.
 ///
index d66435ee6f1c878c17ee20a15f4388b9dceeba61..80af595c69de795c4c8d9e79bed8808a3d2532f6 100644 (file)
@@ -150,8 +150,8 @@ impl Header {
             PXAR_ACL_GROUP_OBJ => size_of::<acl::GroupObject>() as u64,
             PXAR_QUOTA_PROJID => size_of::<QuotaProjectId>() as u64,
             PXAR_ENTRY => size_of::<Stat>() as u64,
-            PXAR_PAYLOAD | PXAR_GOODBYE => std::u64::MAX - (size_of::<Self>() as u64),
-            _ => std::u64::MAX - (size_of::<Self>() as u64),
+            PXAR_PAYLOAD | PXAR_GOODBYE => u64::MAX - (size_of::<Self>() as u64),
+            _ => u64::MAX - (size_of::<Self>() as u64),
         }
     }