Add missing semicolons

This commit is contained in:
Jonas Platte 2021-09-13 18:39:04 +02:00
parent c9bb99b284
commit ebd812bcda
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
4 changed files with 6 additions and 6 deletions

View File

@ -88,10 +88,10 @@ impl Parse for Metadata {
FieldValue::Name(n) => set_field(&mut name, n)?, FieldValue::Name(n) => set_field(&mut name, n)?,
FieldValue::Path(p) => set_field(&mut path, p)?, FieldValue::Path(p) => set_field(&mut path, p)?,
FieldValue::RateLimited(value, attrs) => { FieldValue::RateLimited(value, attrs) => {
rate_limited.push(MetadataField { attrs, value }) rate_limited.push(MetadataField { attrs, value });
} }
FieldValue::Authentication(value, attrs) => { FieldValue::Authentication(value, attrs) => {
authentication.push(MetadataField { attrs, value }) authentication.push(MetadataField { attrs, value });
} }
} }
} }

View File

@ -272,7 +272,7 @@ mod tweak_serde {
let highlight = let highlight =
if let Ok(highlight) = access.next_value() { highlight } else { true }; if let Ok(highlight) = access.next_value() { highlight } else { true };
tweaks.push(Tweak::Highlight(highlight)) tweaks.push(Tweak::Highlight(highlight));
} }
_ => tweaks.push(Tweak::Custom { name: key, value: access.next_value()? }), _ => tweaks.push(Tweak::Custom { name: key, value: access.next_value()? }),
}; };

View File

@ -43,7 +43,7 @@ pub fn auth_types_for_event(
if [MembershipState::Join, MembershipState::Invite].contains(&membership) { if [MembershipState::Join, MembershipState::Invite].contains(&membership) {
let key = (EventType::RoomJoinRules, "".to_owned()); let key = (EventType::RoomJoinRules, "".to_owned());
if !auth_types.contains(&key) { 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); let key = (EventType::RoomThirdPartyInvite, t_id.signed.token);
if !auth_types.contains(&key) { if !auth_types.contains(&key) {
auth_types.push(key) auth_types.push(key);
} }
} }
} }

View File

@ -147,7 +147,7 @@ pub fn do_check(
let mut auth_events = vec![]; let mut auth_events = vec![];
for key in auth_types { for key in auth_types {
if state_before.contains_key(&key) { if state_before.contains_key(&key) {
auth_events.push(state_before[&key].clone()) auth_events.push(state_before[&key].clone());
} }
} }