mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Fix warning
This commit is contained in:
parent
c88d33a6d0
commit
caa423b67a
@ -117,7 +117,7 @@ pub fn admin_check(auth: AuthGuard) -> Json<bool> {
|
||||
}
|
||||
|
||||
#[get("/api/username")]
|
||||
pub fn username(auth: AuthGuard, cookies: &CookieJar) -> Json<String> {
|
||||
pub fn username(_auth: AuthGuard, cookies: &CookieJar) -> Json<String> {
|
||||
if let Some(token) = cookies.get("User-Token") {
|
||||
let lock = WEB_USERS.lock();
|
||||
if let Some(users) = &*lock {
|
||||
|
Loading…
Reference in New Issue
Block a user