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

@ -25,7 +25,7 @@ pub(crate) async fn create_alias_route(
));
}
if let Some(ref info) = body.appservice_info {
if let Some(info) = &body.appservice_info {
if !info.aliases.is_match(body.room_alias.as_str()) {
return Err(Error::BadRequest(
ErrorKind::Exclusive,
@ -76,7 +76,7 @@ pub(crate) async fn delete_alias_route(
));
}
if let Some(ref info) = body.appservice_info {
if let Some(info) = &body.appservice_info {
if !info.aliases.is_match(body.room_alias.as_str()) {
return Err(Error::BadRequest(
ErrorKind::Exclusive,