mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
chore: enable clippy::trivially_copy_pass_by_ref lint and address it (#6724)
This commit is contained in:
@ -273,7 +273,7 @@ pub fn get_oidc_sso_redirect_url(state: &SessionState, provider: &str) -> String
|
||||
format!("{}/redirect/oidc/{}", state.conf.user.base_url, provider)
|
||||
}
|
||||
|
||||
pub fn is_sso_auth_type(auth_type: &UserAuthType) -> bool {
|
||||
pub fn is_sso_auth_type(auth_type: UserAuthType) -> bool {
|
||||
match auth_type {
|
||||
UserAuthType::OpenIdConnect => true,
|
||||
UserAuthType::Password | UserAuthType::MagicLink => false,
|
||||
|
||||
@ -233,7 +233,7 @@ pub fn is_update_required(metadata: &UserResult<DashboardMetadata>) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_backfill_required(metadata_key: &DBEnum) -> bool {
|
||||
pub fn is_backfill_required(metadata_key: DBEnum) -> bool {
|
||||
matches!(
|
||||
metadata_key,
|
||||
DBEnum::StripeConnected | DBEnum::PaypalConnected
|
||||
|
||||
Reference in New Issue
Block a user