Silence warnings

This commit is contained in:
Ethan O'Brien 2024-04-04 20:16:01 -05:00
parent 2fc7a17d4f
commit f33e211dab
2 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ use json::object;
use hmac::{Hmac, Mac};
use crate::router::userdata;
pub fn initialize(req: HttpRequest, body: String) -> HttpResponse {
pub fn initialize(req: HttpRequest, _body: String) -> HttpResponse {
//println!("{}", body);
let app_id = "232610769078541";
let resp = object!{

View file

@ -4,9 +4,9 @@ use crate::router::global;
use actix_web::{HttpResponse, HttpRequest};
use crate::router::userdata;
pub fn mission(req: HttpRequest) -> HttpResponse {
let key = global::get_login(req.headers());
let user = userdata::get_acc(&key);
pub fn mission(_req: HttpRequest) -> HttpResponse {
//let key = global::get_login(req.headers());
//let user = userdata::get_acc(&key);
let resp = object!{
"code": 0,