mirror of
git://git.proxmox.com/git/pxar.git
synced 2025-01-08 01:17:40 +03:00
fix deprecated use of std::u64 modules
MAX values in these modules are replaced by associated constants in the integer types Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
e5a2495ed3
commit
1a2a5570b1
@ -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.
|
||||
///
|
||||
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user