mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
enable ref_patterns lint
This commit is contained in:
parent
6bdaeab1af
commit
d144db8688
6 changed files with 10 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue