Clippy :(

This commit is contained in:
asonix 2023-07-26 19:29:03 -05:00
parent 73c7150f97
commit 5d526c60fe

View file

@ -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)?