enable ref_patterns lint

This commit is contained in:
Charles Hall 2024-05-12 18:38:12 -07:00
parent 6bdaeab1af
commit d144db8688
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
6 changed files with 10 additions and 9 deletions

View file

@ -122,7 +122,7 @@ pub(crate) async fn register_route(
};
if body.body.login_type == Some(LoginType::ApplicationService) {
if let Some(ref info) = body.appservice_info {
if let Some(info) = &body.appservice_info {
if !info.is_user_match(&user_id) {
return Err(Error::BadRequest(
ErrorKind::Exclusive,