Add missing semicolons
This commit is contained in:
parent
c9bb99b284
commit
ebd812bcda
@ -88,10 +88,10 @@ impl Parse for Metadata {
|
||||
FieldValue::Name(n) => set_field(&mut name, n)?,
|
||||
FieldValue::Path(p) => set_field(&mut path, p)?,
|
||||
FieldValue::RateLimited(value, attrs) => {
|
||||
rate_limited.push(MetadataField { attrs, value })
|
||||
rate_limited.push(MetadataField { attrs, value });
|
||||
}
|
||||
FieldValue::Authentication(value, attrs) => {
|
||||
authentication.push(MetadataField { attrs, value })
|
||||
authentication.push(MetadataField { attrs, value });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -272,7 +272,7 @@ mod tweak_serde {
|
||||
let highlight =
|
||||
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()? }),
|
||||
};
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user