You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Convert many match/if expressions to let-else
This commit is contained in:
@ -59,9 +59,8 @@ impl<T> Localized<T> {
|
||||
where
|
||||
T: DeserializeOwned,
|
||||
{
|
||||
let map = match map.remove(field_name) {
|
||||
Some(map) => map,
|
||||
None => return Ok(None),
|
||||
let Some(map) = map.remove(field_name) else {
|
||||
return Ok(None);
|
||||
};
|
||||
|
||||
let mut non_localized = None;
|
||||
|
Reference in New Issue
Block a user