mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
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:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user