You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-12-10 01:01:09 +03:00
Convert many match/if expressions to let-else
This commit is contained in:
@@ -111,9 +111,7 @@ use serde_with::{{DeserializeFromStr, SerializeDisplay}};"#,
|
||||
)?;
|
||||
|
||||
for section in &self.sections {
|
||||
let list = if let Some(list) = self.items.get(section.key) {
|
||||
list
|
||||
} else {
|
||||
let Some(list) = self.items.get(section.key) else {
|
||||
continue;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user