Skip to content

Commit 10bda44

Browse files
odelcroisandhose
andcommitted
use match
Co-authored-by: Quentin Gliech <quenting@element.io>
1 parent 2eb59bc commit 10bda44

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
@@ -118,8 +118,10 @@ impl ConfigurationSection for UpstreamOAuth2Config {
118118
}
119119
}
120120

121-
if !provider.claims_imports.localpart.on_conflict.is_default()
122-
&& !matches!(
121+
if matches!(
122+
provider.claims_imports.localpart.on_conflict,
123+
OnConflict::Add
124+
) && !matches!(
123125
provider.claims_imports.localpart.action,
124126
ImportAction::Force | ImportAction::Require
125127
)

0 commit comments

Comments
 (0)