From e58d4abb282b073440960a602bd146b28ca06809 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 1 Oct 2020 20:14:56 -0700 Subject: [PATCH] removed some more warnings until these vars are used --- server-api/src/perms.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server-api/src/perms.rs b/server-api/src/perms.rs index d393af2..266be43 100644 --- a/server-api/src/perms.rs +++ b/server-api/src/perms.rs @@ -10,14 +10,14 @@ pub const CREATE_PERM_INVITES:u64 = 8; // to make perma invites you need both fl pub const OWNER: u64 = 1 << 63; -pub const ADMIN: u64 = 1 << 62; // can make other admins but can't really touch the owner +pub const _ADMIN: u64 = 1 << 62; // can make other admins but can't really touch the owner // ADMIN PERMS pub const CREATE_CHANNEL:u64 = 64; pub const DELETE_CHANNEL:u64 = 128; // BELOW ARE COLLECTIVE PERMISSION SETS -pub const OWNER_PERMS: u64 = std::u64::MAX; +pub const _OWNER_PERMS: u64 = std::u64::MAX; pub const GENERAL_NEW: u64 = JOIN_VOICE | SEND_MESSAGES | ALLOW_PFP | CHANGE_NICK; pub const ADMIN_PERMS: u64 = !(std::u64::MAX & OWNER); // filter the only perm admins don't get @@ -26,7 +26,6 @@ pub fn get_perm_mask(path: &str) -> Option { INVITE_CREATE, CHANNELS_LIST, CHANNELS_CREATE, CHANNELS_DELETE, MESSAGE_SEND, - SERVER_META, }; match path { INVITE_CREATE => Some(CREATE_TMP_INVITES),