mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-12-23 11:40:31 +00:00
Clippy :(
This commit is contained in:
parent
73c7150f97
commit
5d526c60fe
1 changed files with 3 additions and 3 deletions
|
@ -37,10 +37,10 @@ pub(crate) struct Admin {
|
||||||
db: Data<Db>,
|
db: Data<Db>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PrepareTuple = (Data<Db>, Data<AdminConfig>, Data<Spawner>, XApiToken);
|
||||||
|
|
||||||
impl Admin {
|
impl Admin {
|
||||||
fn prepare_verify(
|
fn prepare_verify(req: &HttpRequest) -> Result<PrepareTuple, Error> {
|
||||||
req: &HttpRequest,
|
|
||||||
) -> Result<(Data<Db>, Data<AdminConfig>, Data<Spawner>, XApiToken), Error> {
|
|
||||||
let hashed_api_token = req
|
let hashed_api_token = req
|
||||||
.app_data::<Data<AdminConfig>>()
|
.app_data::<Data<AdminConfig>>()
|
||||||
.ok_or_else(Error::missing_config)?
|
.ok_or_else(Error::missing_config)?
|
||||||
|
|
Loading…
Reference in a new issue