chore: address Rust 1.78 clippy lints (#4545)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2024-05-07 16:05:32 +05:30
committed by GitHub
parent 99bbc3982f
commit 2216a88d25
222 changed files with 1138 additions and 1631 deletions

View File

@ -11,7 +11,7 @@ use crate::{
routes::AppState,
services::{
authentication::{AuthToken, UserFromToken},
authorization::roles::{self, RoleInfo},
authorization::roles::RoleInfo,
},
types::domain::{self, MerchantAccount, UserFromStorage},
};
@ -64,7 +64,7 @@ impl UserFromToken {
}
pub async fn get_role_info_from_db(&self, state: &AppState) -> UserResult<RoleInfo> {
roles::RoleInfo::from_role_id(state, &self.role_id, &self.merchant_id, &self.org_id)
RoleInfo::from_role_id(state, &self.role_id, &self.merchant_id, &self.org_id)
.await
.change_context(UserErrors::InternalServerError)
}