summaryrefslogtreecommitdiff
path: root/src/types/extract.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/extract.rs')
-rw-r--r--src/types/extract.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/types/extract.rs b/src/types/extract.rs
index 64a3e73..af30d3f 100644
--- a/src/types/extract.rs
+++ b/src/types/extract.rs
@@ -14,12 +14,12 @@ use bytes::Bytes;
use serde::de::DeserializeOwned;
use crate::{
- console,
+ admin, console,
types::{
http::{ResponseCode, Result},
session::Session,
user::User,
- }, admin,
+ },
};
pub struct AuthorizedUser(pub User);
@@ -71,12 +71,12 @@ where
return Err(ResponseCode::Forbidden.text("No admin secret provided"))
};
- println!("{}", secret);
+ println!("{secret}");
let check = admin::get_secret().await;
if check != secret {
- return Err(ResponseCode::Unauthorized.text("Auth token invalid"))
+ return Err(ResponseCode::Unauthorized.text("Auth token invalid"));
}
Ok(Self)