Skip to content

Commit c4565be

Browse files
odelcroisandhose
andcommitted
use match
Co-authored-by: Quentin Gliech <[email protected]>
1 parent e5e8c5a commit c4565be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/config/src/sections/upstream_oauth2.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ impl ConfigurationSection for UpstreamOAuth2Config {
111111
}
112112
}
113113

114-
if !provider.claims_imports.localpart.on_conflict.is_default()
115-
&& !matches!(
114+
if matches!(
115+
provider.claims_imports.localpart.on_conflict,
116+
OnConflict::Add
117+
) && !matches!(
116118
provider.claims_imports.localpart.action,
117119
ImportAction::Force | ImportAction::Require
118120
)

0 commit comments

Comments
 (0)