fix deprecated use of std::u64/... modules

integer primitive type modules are deprecated, use
associated constants instead

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2021-10-04 14:58:55 +02:00
parent ae9b5c077a
commit 347e0d4c57
4 changed files with 7 additions and 7 deletions

View File

@ -76,7 +76,7 @@ constnamedbitmap! {
/// Admin always has all privileges. It can do everything except a few actions
/// which are limited to the 'root@pam` superuser
pub const ROLE_ADMIN: u64 = std::u64::MAX;
pub const ROLE_ADMIN: u64 = u64::MAX;
/// NoAccess can be used to remove privileges from specific (sub-)paths
pub const ROLE_NO_ACCESS: u64 = 0;