You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-07 17:03:01 +03:00
Apply cargo fmt
following changes in nightly rustfmt
rustfmt now formats `let … else { … }` expressions
This commit is contained in:
@@ -28,8 +28,12 @@ where
|
||||
}
|
||||
|
||||
pub fn http_all_error_status_codes() -> impl RangeBounds<StatusCode> {
|
||||
let Ok(client_errors_start_code) = StatusCode::from_u16(400) else { unreachable!() };
|
||||
let Ok(server_errors_end_code) = StatusCode::from_u16(599) else { unreachable!() };
|
||||
let Ok(client_errors_start_code) = StatusCode::from_u16(400) else {
|
||||
unreachable!()
|
||||
};
|
||||
let Ok(server_errors_end_code) = StatusCode::from_u16(599) else {
|
||||
unreachable!()
|
||||
};
|
||||
|
||||
client_errors_start_code..=server_errors_end_code
|
||||
}
|
||||
|
Reference in New Issue
Block a user