Add missing semicolons
This commit is contained in:
@@ -43,7 +43,7 @@ pub fn auth_types_for_event(
|
||||
if [MembershipState::Join, MembershipState::Invite].contains(&membership) {
|
||||
let key = (EventType::RoomJoinRules, "".to_owned());
|
||||
if !auth_types.contains(&key) {
|
||||
auth_types.push(key)
|
||||
auth_types.push(key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ pub fn auth_types_for_event(
|
||||
{
|
||||
let key = (EventType::RoomThirdPartyInvite, t_id.signed.token);
|
||||
if !auth_types.contains(&key) {
|
||||
auth_types.push(key)
|
||||
auth_types.push(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ pub fn do_check(
|
||||
let mut auth_events = vec![];
|
||||
for key in auth_types {
|
||||
if state_before.contains_key(&key) {
|
||||
auth_events.push(state_before[&key].clone())
|
||||
auth_events.push(state_before[&key].clone());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user