moar warning removals

This commit is contained in:
shockrah 2020-10-02 13:24:45 -07:00
parent b897e07273
commit 9f3e734b0b
2 changed files with 4 additions and 4 deletions

View File

@ -33,6 +33,7 @@ mod members;
mod perms; mod perms;
mod messages; mod messages;
mod admin; mod admin;
//mod logging;
mod http_params; mod http_params;
mod db_types; mod db_types;

View File

@ -2,7 +2,6 @@ use chrono::Utc;
use hyper::{Response, Body}; use hyper::{Response, Body};
use mysql_async::{Conn, Pool, error::Error as SqlError}; use mysql_async::{Conn, Pool, error::Error as SqlError};
use mysql_async::prelude::{params, Queryable}; use mysql_async::prelude::{params, Queryable};
use serde_json::Value;
use serde::Serialize; use serde::Serialize;
use crate::db_types::{UBigInt, BigInt, Integer, VarChar}; use crate::db_types::{UBigInt, BigInt, Integer, VarChar};
@ -19,9 +18,9 @@ pub struct Member {
} }
const STATUS_ONLINE: Integer = 0; const STATUS_ONLINE: Integer = 0;
const STATUS_OFFLINE: Integer = 1; const _STATUS_OFFLINE: Integer = 1;
const STATUS_AWAY: Integer = 2; const _STATUS_AWAY: Integer = 2;
const STATUS_DO_NOT_DISTURB: Integer = 3; const _STATUS_DO_NOT_DISTURB: Integer = 3;
pub async fn insert_new_member(p: &Pool, name: VarChar, perms: u64) -> Result<Member, SqlError> { pub async fn insert_new_member(p: &Pool, name: VarChar, perms: u64) -> Result<Member, SqlError> {
use crate::auth::generate_secret; use crate::auth::generate_secret;